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: The ServeMux can clobber user routes without an error #2900

Closed
balasanjay opened this issue Feb 7, 2012 · 3 comments
Closed

net/http: The ServeMux can clobber user routes without an error #2900

balasanjay opened this issue Feb 7, 2012 · 3 comments

Comments

@balasanjay
Copy link
Contributor

When you register a URL like "/foo/bar/", the ServeMux will add register
redirect from "/foo/bar" to "/foo/bar/" on the URL
"/foo/bar". This registration will clobber any previously registered handlers
for "/foo/bar". It could either give an error in this situation, never add the
helpful redirect handler, or let the user handler win in these cases.
@balasanjay
Copy link
Contributor Author

Comment 1:

http://golang.org/cl/5630053/ is a CL that opts for option 3.
See https://groups.google.com/forum/?fromgroups#!topic/golang-dev/4hJinypnYrI for
discussion.

@rsc
Copy link
Contributor

rsc commented Feb 8, 2012

Comment 2:

Fine, but after Go 1.

Labels changed: added priority-later, removed priority-triage.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Feb 8, 2012

Comment 3:

This issue was closed by revision d0dc689.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants