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
$ curl -i "http://localhost:9999/nope?bar=http%3A%2F%2F0.media.dorkly.cvcdn.com%2F36%2F35%2F6603dc5a9292104b44c349b85b5aaf7a-5-crazy-fan-theories-that-make-total-sense.jpg"
HTTP/1.1 200 OK
Date: Tue, 30 Dec 2014 11:35:17 GMT
Content-Length: 21
Content-Type: text/plain; charset=utf-8
Hi there, I love nope!
$ go version
go version go1.4 darwin/amd64
This would be a common nginx pattern for example.
For this I assumed net/http would let the user make the choice between redirecting/using it as a parameter.
Cheers !
The text was updated successfully, but these errors were encountered:
azr
changed the title
net/http.Server: Can't use URIEncoded parameters as server redirects (301)
net/http.Server: Can't use URIEncoded parameters because server redirects (301)
Dec 30, 2014
The Go standard library is a bit aggressive with over-unescaping things and for compatibility reasons can't really be "fixed". If you need the raw request, use net/http.Request.RequestURI.
mikioh
changed the title
net/http.Server: Can't use URIEncoded parameters because server redirects (301)
net/http: Server can't use URIEncoded parameters because server redirects (301)
Dec 31, 2014
Hello there,
I'm not sure if this is a bug but with the following code :
If I curl it with an url that is URIEncoded as a query parameter
And if I follow the redirect, the url parameters will be
But if I do
This would be a common nginx pattern for example.
For this I assumed
net/http
would let the user make the choice between redirecting/using it as a parameter.Cheers !
The text was updated successfully, but these errors were encountered: