From 4bbb0340ffff15a01dc2a73f9424dac0851b7173 Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Sat, 15 Jul 2017 16:53:56 +1000 Subject: [PATCH] Fix hop-header filtering --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 1c3e82a..a55caee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,7 +44,7 @@ fn is_hop_header(name: &str) -> bool { fn remove_hop_headers(headers: &Headers) -> Headers { headers .iter() - .filter(|header| is_hop_header(header.name())) + .filter(|header| !is_hop_header(header.name())) .collect() }