-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: url.Parse("example.com/oid/[order_id]") escapes [ ] in String() method #5684
Labels
Milestone
Comments
Labels changed: added priority-soon, packagechange, removed priority-triage. Owner changed to @bradfitz. Status changed to Accepted. |
Issue #6784 has been merged into this issue. |
Russ Cox pointed out that a workaround is documented at http://godoc.org/net/url#URL, in the paragraph starting with "Note that the path field…" That worked for me, once I realized that if the request is going through a proxy, the host should be included in the Opaque field, but if it isn't, the Opaque field should be just the path. |
Issue #7914 has been merged into this issue. |
Issue #7975 has been merged into this issue. |
mpbuettner
added
accepted
Suggested
Issues that may be good for new contributors looking for work to do.
labels
May 12, 2014
This was referenced Dec 8, 2014
ghost
mentioned this issue
Feb 7, 2015
richardiux
added a commit
to wanelo/image-server
that referenced
this issue
Apr 2, 2015
Go has a bug where it does not include all allowed reserved sub-delimiters As a workaround, a http.Get is extended to keep the paths un-escaped. It is expected that URL are previously escaped, so there should be no negative side effect For more information on bug: golang/go#5684
This was referenced Aug 5, 2015
rsc
changed the title
net/url: shouldEscape does not check all reserved characters
net/url: url.Parse("example.com/oid/[order_id]") escapes [ ] in String() method
Aug 6, 2015
ghost
mentioned this issue
Aug 23, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The text was updated successfully, but these errors were encountered: