You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. use NewSingleHostReverseProxy to create reverse proxy server
2. send HTTP request with path?query
3. base/path is preserved, but not ?query
What is the expected output?
proxy'd request should include query parameters of original request
What do you see instead?
query params removed
Which revision are you using? (hg identify)
1107a7d3cb07 weekly/weekly.2012-01-27
The weekly and tip show:
req.URL.Scheme = target.Scheme
req.URL.Host = target.Host
req.URL.Path = singleJoiningSlash(target.Path, req.URL.Path)
req.URL.RawQuery = target.RawQuery
What is the last line there supposed to do? Deleting it restores expected behavior.
The text was updated successfully, but these errors were encountered:
Yeah, it used to work. I think it was "fixed" incorrectly with the URL changes. It
looks like a simple matter of deleting that last line above, since req.URL.RawQuery
should not change.
by RyanneDolan:
The text was updated successfully, but these errors were encountered: