aboutsummaryrefslogtreecommitdiff
path: root/src/reverse_proxy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/reverse_proxy.rs')
-rw-r--r--src/reverse_proxy.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/reverse_proxy.rs b/src/reverse_proxy.rs
index 82533d8..046808f 100644
--- a/src/reverse_proxy.rs
+++ b/src/reverse_proxy.rs
@@ -72,10 +72,8 @@ fn create_proxied_request<B>(
// If request does not have host header, add it from original URI authority
if let Some(authority) = request.uri().authority() {
- if let hyper::header::Entry::Vacant(entry) = builder
- .headers_mut()
- .unwrap()
- .entry(host_header_name)
+ if let hyper::header::Entry::Vacant(entry) =
+ builder.headers_mut().unwrap().entry(host_header_name)
{
entry.insert(authority.as_str().parse()?);
}