diff options
author | Alex Auvolat <alex@adnab.me> | 2021-12-09 23:38:56 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-12-09 23:38:56 +0100 |
commit | f7a5b29b719778974a6791d03b8c5eb2e5836355 (patch) | |
tree | a887ec309c49426676f6fd805f61a68e586fa1c2 /src/reverse_proxy.rs | |
parent | e0912dc5fe61839522db118a2dd2e06bb3c18d40 (diff) | |
download | tricot-f7a5b29b719778974a6791d03b8c5eb2e5836355.tar.gz tricot-f7a5b29b719778974a6791d03b8c5eb2e5836355.zip |
cargo clippy
Diffstat (limited to 'src/reverse_proxy.rs')
-rw-r--r-- | src/reverse_proxy.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reverse_proxy.rs b/src/reverse_proxy.rs index 445f6ef..f4ded40 100644 --- a/src/reverse_proxy.rs +++ b/src/reverse_proxy.rs @@ -39,7 +39,7 @@ fn is_hop_header(name: &HeaderName) -> bool { fn remove_hop_headers(headers: &HeaderMap<HeaderValue>) -> HeaderMap<HeaderValue> { let mut result = HeaderMap::new(); for (k, v) in headers.iter() { - if !is_hop_header(&k) { + if !is_hop_header(k) { result.append(k.clone(), v.clone()); } } |