postmanlabs / httpbin

HTTP Request & Response Service, written in Python + Flask.
https://httpbin.org
ISC License
12.83k stars 1.82k forks source link

/headers Endpoint doesn't show all request headers #715

Closed jackiecan closed 1 month ago

jackiecan commented 9 months ago

Hi, I tried to verify the usage of the X-Forwarded-For and Via-Header of my squid proxy with the /headers Endpoint which "Return the incoming request's HTTP headers." But the headers weren't present in the servers response like I would expect it. So I tested my proxy with a simple Python Webserver which indeed showed the presence of both headers. Is there some sort of preprocessing (maybe while Loadbalancing etc.) that removes headers? If so, maybe at least a notice of the possible removing of headers would be nice.

Mossop commented 1 month ago

See #300 and #71