diff --git a/src/main.rs b/src/main.rs index 734a679..33a2a83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,6 +131,10 @@ impl Router { fn speak_proxy(req: Request, remote_addr: SocketAddr, router: Arc, endpoint: &'static str) -> BoxFut { let mut headers = req.headers().clone(); + for (k, v) in headers.iter() { + info!("Header: {:?} = {:?}", k, v); + } + // This is the correct client IP, not the IP of the load balancer. // We're adding it to the headers so that downstream can use it for rate limiting and logging. let forwarded_ip = HeaderValue::from_str(&remote_addr.ip().to_string())