Skip to content

net/url: ParseQuery disagrees with docs #4175

@rdwilliamson

Description

@rdwilliamson
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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions