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/url: Parse("#foo") should not result in error #4700
Labels
Milestone
Comments
Does http://golang.org/pkg/net/url/#URL.Parse behave differently? |
Seems like no, http://play.golang.org/p/rGuL0uGSZf |
URL.Parse does quite well in the weird examples from RFC 3986, but "" or "#fragment" result in error: http://play.golang.org/p/F0ApSaXniv |
I'd like to implement this in Parse(), so that URL.ResolveReference() could also do this kind of resolution. But I'm afraid that this would be considered an API break, so I implemented it in URL.Parse for now: https://golang.org/cl/7205056 The RFC examples I mentioned in comment 3 are solved in issue #4706. |
This issue was closed by revision 82e3ca7. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: