diff --git a/src/main.rs b/src/main.rs index fb4167e..a015dd8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,7 +112,6 @@ async fn proxy( http_basic: &Option, allowed_domains: &Option>, ) -> Result>, hyper::Error> { - let uri = req.uri(); let mut http_authed = false; let hm = req.headers(); @@ -147,7 +146,7 @@ async fn proxy( } let method = req.method(); - debug!("Proxying request: {} {}", method, uri); + debug!("Proxying request: {} {}", method, req.uri()); if let (Some(allowed_domains), Some(request_domain)) = (allowed_domains, req.uri().host()) { let domain = request_domain.to_owned(); if !allowed_domains.contains(&domain) {