advance 1-8 post-mvp execution batches
This commit is contained in:
@@ -9,6 +9,10 @@ pub async fn inject_request_context(mut request: Request, next: Next) -> Respons
|
||||
request.extensions_mut().insert(context.clone());
|
||||
|
||||
let mut response = next.run(request).await;
|
||||
context.apply_response_headers(response.headers_mut());
|
||||
if context.trace.path == "/api/auth" {
|
||||
context.apply_trace_response_headers(response.headers_mut());
|
||||
} else {
|
||||
context.apply_response_headers(response.headers_mut());
|
||||
}
|
||||
response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user