diff options
Diffstat (limited to 'src/modules/hosts.rs')
-rw-r--r-- | src/modules/hosts.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/modules/hosts.rs b/src/modules/hosts.rs index 03a8b57..72d1afd 100644 --- a/src/modules/hosts.rs +++ b/src/modules/hosts.rs @@ -26,13 +26,11 @@ impl Node for Hosts { request: NodeRequest, ) -> Pin<Box<dyn Future<Output = Result<NodeResponse, ServiceError>> + Send + Sync + 'a>> { Box::pin(async move { - // use Host header but if missing like in HTTP/2 uses uri authority let host = request .headers() .get(HOST) .and_then(|e| e.to_str().ok()) .map(remove_port) - .or(request.uri().authority().map(|a| a.host())) .ok_or(ServiceError::NoHost)?; let node = self.0.get(host).ok_or(ServiceError::UnknownHost)?; |