diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-06 14:24:00 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-06 14:24:00 +0100 |
commit | 9bd922adf931e1ba2cf2ec55995c06420fe8c46c (patch) | |
tree | f2cbd3cd2cbbe61376d826cf85fa76923fea0a1e /src/reverse_proxy.rs | |
parent | 8d1162f20694d5d8551879e7ba9b34c817f0caed (diff) | |
download | tricot-9bd922adf931e1ba2cf2ec55995c06420fe8c46c.tar.gz tricot-9bd922adf931e1ba2cf2ec55995c06420fe8c46c.zip |
Cargo clippydocker-44
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 74c43e3..258862b 100644 --- a/src/reverse_proxy.rs +++ b/src/reverse_proxy.rs @@ -178,7 +178,7 @@ async fn create_proxied_response<B: std::default::Default + Send + Sync + 'stati *new_res.headers_mut().unwrap() = new_headers; Ok(new_res.body(B::default())?) } else { - return Err(anyhow!("Switching protocols but not an upgrade request")); + Err(anyhow!("Switching protocols but not an upgrade request")) } } else { *response.headers_mut() = new_headers; |