Skip to content

Commit

Permalink
fix proxy bug with colliding headers
Browse files Browse the repository at this point in the history
  • Loading branch information
markcda committed Feb 2, 2025
1 parent 217c09d commit da08315
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,13 +320,11 @@ where
body,
) = response.into_parts();
res.status_code(status);
tracing::warn!("{:?}", headers);
for (name, value) in headers {
if let Some(name) = name {
res.headers.insert(name, value);
res.headers.append(name, value);
}
}
tracing::warn!("{:?}", res.headers());
res.body(body);
}
Err(e) => {
Expand Down

0 comments on commit da08315

Please sign in to comment.