Fix hop-header filtering

This commit is contained in:
Brendan Zabarauskas 2017-07-15 16:53:56 +10:00
parent 2e5475d45d
commit 4bbb0340ff

View File

@ -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()
} }