From 6aef89c6ef1af362256e8c7d3465b56490868f42 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Wed, 1 Jul 2020 05:46:04 -0400 Subject: [PATCH] debug by printing all headers --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) 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())