Skip to content

Commit

Permalink
Remove duplicate http host entry in proxy (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t authored Oct 26, 2023
1 parent e94783f commit 1be594c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ where
for (key, value) in req.headers() {
if key != HOST {
build = build.header(key, value);
} else {
build = build.header(HOST, forward_url.host().unwrap());
}
}
if let Some(host) = forward_url.host().and_then(|host| HeaderValue::from_str(host).ok()) {
Expand Down

0 comments on commit 1be594c

Please sign in to comment.