felipenoris / hyper-reverse-proxy

A simple reverse proxy for use with Hyper and Tokio
Apache License 2.0
181 stars 63 forks source link

Use the Forwarded header instead of X-Forwarded-For #1

Open brendanzab opened 7 years ago

brendanzab commented 7 years ago

Go's httputil.ReverseProxy uses the defacto standard of the X-Forwarded-For header, but I'm wondering if it would be better to use the standardised Forwarded header instead. Unfortunately it is not implemented in hyper yet, so we might have to do it ourselves, then try to upstream it.