Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: ServeMux uses un-escaped paths in the implicit /tree → /tree/ redirect #10572

MihaiB opened this issue Apr 24, 2015 · 1 comment


None yet
5 participants
Copy link

commented Apr 24, 2015

• go version
go version go1.4.1 linux/amd64

• What did you do?
Registered a http.Handler for the pattern "/#/" and made a GET request to http://localhost/%23.

• What did you expect to see?
An HTTP redirect to "/%23/"

• What did you see instead?

HTTP/1.1 301 Moved Permanently
Location: /#/

The server appends a slash to the un-escaped path and redirects the client. Following this redirect gives a 404.


This comment has been minimized.

Copy link

commented Apr 25, 2015

CL mentions this issue.

@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Jun 3, 2015

@rsc rsc closed this in 450988b Jun 26, 2015

@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jun 26, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.