Skip to content

Commit 0d76f35

Browse files
authored
fix: retain headers in attestation middleware (#577)
1 parent 418a638 commit 0d76f35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/service/src/middleware/attestation.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ pub async fn attestation_middleware(
6666
attestation,
6767
})?;
6868

69-
Ok(Response::new(response.into()))
69+
let mut response = Response::new(response.into());
70+
*response.headers_mut() = parts.headers;
71+
Ok(response)
7072
}
7173

7274
#[derive(thiserror::Error, Debug)]

0 commit comments

Comments
 (0)