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/url: ParseQuery disagrees with docs #4175

Closed
rdwilliamson opened this issue Sep 29, 2012 · 4 comments
Closed

net/url: ParseQuery disagrees with docs #4175

rdwilliamson opened this issue Sep 29, 2012 · 4 comments
Milestone

Comments

@rdwilliamson
Copy link

The documentation for url.ParseQuery says it will return the first error decoding,
however it returns the last error.

What steps will reproduce the problem?
http://play.golang.org/p/7ImRd9k0iQ

_, err := url.ParseQuery("%gh&%ij")
if err != nil {
    fmt.Println(err)
}

What is the expected output?
invalid URL escape "%gh"

What do you see instead?
invalid URL escape "%ij"
@rsc
Copy link
Contributor

rsc commented Oct 1, 2012

Comment 1:

Probably we should fix the implementation.

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

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Oct 1, 2012

Comment 2:

Labels changed: added go1.1.

@dsymonds
Copy link
Contributor

dsymonds commented Oct 8, 2012

Comment 3:

Owner changed to @dsymonds.

@dsymonds
Copy link
Contributor

dsymonds commented Oct 8, 2012

Comment 4:

This issue was closed by revision c7cc894.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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

4 participants