From 359aa4060b329b7bc72474f304b1f977cd050952 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Wed, 13 Apr 2022 22:46:07 -0300 Subject: [PATCH] fmt --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d78055e..37fe272 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -300,7 +300,7 @@ fn create_proxied_request( let upgrade_type = get_upgrade_type(request.headers()); let uri: hyper::Uri = forward_uri(forward_url, &request).parse()?; - + request .headers_mut() .insert(HOST, HeaderValue::from_str(uri.host().unwrap())?);