Fix hop-header filtering
This commit is contained in:
parent
2e5475d45d
commit
4bbb0340ff
@ -44,7 +44,7 @@ fn is_hop_header(name: &str) -> bool {
|
|||||||
fn remove_hop_headers(headers: &Headers) -> Headers {
|
fn remove_hop_headers(headers: &Headers) -> Headers {
|
||||||
headers
|
headers
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|header| is_hop_header(header.name()))
|
.filter(|header| !is_hop_header(header.name()))
|
||||||
.collect()
|
.collect()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user