v0.25.3
This commit is contained in:
1 parent
174389e5b1
commit
e6604e41fc
73 files changed
+1240
-201
No files matched your search
+2
-2
@@ -364,10 +364,10 @@ pub struct DiagnosticHeaders {
|
||||
pub request_id: bool,
|
||||
}
|
||||
impl DiagnosticHeaders {
|
||||
pub fn apply(&self, headers: &mut HeaderMap, id: u64) {
|
||||
pub fn apply(&self, headers: &mut HeaderMap, request_id: &str) {
|
||||
headers.remove("x-request-id");
|
||||
if self.request_id {
|
||||
if let Ok(value) = id.to_string().parse() {
|
||||
if let Ok(value) = request_id.parse() {
|
||||
headers.insert("x-request-id", value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user