This commit is contained in:
Mateusz Gruszczyński committed 2026-10-04 22:53:33 +02:00
1 parent 174389e5b1
commit e6604e41fc
73 files changed
+1240 -201

No files matched your search

+2 -2
View File
@@ -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);
}
}