aboutsummaryrefslogtreecommitdiff
path: root/src/reverse_proxy.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-07 16:37:22 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-07 16:37:22 +0100
commitccb4e87658f622edbd57cc2b5a058c969643bfe2 (patch)
treea958a0221062a21e7db3859e7b6843d7e5bd8b7c /src/reverse_proxy.rs
parentcd7e5ad034b75d659d4d87a752ab7b11cf75de12 (diff)
downloadtricot-ccb4e87658f622edbd57cc2b5a058c969643bfe2.tar.gz
tricot-ccb4e87658f622edbd57cc2b5a058c969643bfe2.zip
Round robin backends
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()?);
}