net/http/httputil: the reverse proxy is bypassed when the proxied site redirects to itself using an absolute URL #14237
Labels
FrozenDueToAge
help wanted
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
ReverseProxy doesn't follow redirects by itself, so if the proxied site redirects to itself using an absolute URL in the
Location
header (e.g.Location: http://servername/path
), the following requests bypass the proxy.http://play.golang.org/p/DHoUpoPGnf
It would be useful if ReverseProxy had a callback field that allowed modifying the response (at least the headers).
Another use case is when you want to proxy a site that requires registration and do not want any cookies to leak from the proxied server to the client.
The text was updated successfully, but these errors were encountered: