chisel
chisel copied to clipboard
Adding X-Forwarded-Host headers in reverse proxy
Can you add a X-Forwarded-Host header to reverse proxy functionality?
This can be used for the case that the backend web server has virtual hosts or to do http->https redirection tricks.
This can be achieved easily by adding in server.go after line 105:
r.Header.Add("X-Forwarded-Host", r.Host)
that would be great !