umputun / reproxy

Simple edge server / reverse proxy
http://reproxy.io
MIT License
1.21k stars 90 forks source link

Add 'X-Forwarded-URL' to request header #176

Closed umputun closed 4 months ago

umputun commented 4 months ago

The request header now has 'X-Forwarded-URL'. This is particularly useful if we deal with a chain of reverse proxy requests and the final destination has to discover the URL that was passed in originally.

The header is Set, not Add. Most scenarios with X-Forwarded-URL I can think of, involve setting it to reflect the current request's URL, so Set is likely the appropriate choice to ensure no duplicate headers convey conflicting information.