Skip to content

net/url: Request with %2F is not transmitted correctly #10887

Description

@burmanm

go version 1.4.2, Linux x64

When trying to form an URL with escaped "/" (%2F) the handling in net/url either removes the escaping or does double escaping (in which case the requested URL is wrong).

http://play.golang.org/p/1vDHT_p-cZ

The same issue of course makes calling the http.NewRequest also impossible as the given URL is not honored (escaped characters are removed, since the method calls url.Parse) and the wrong URL is called on the other end.

Expected result: QueryEscaped URL should not be modified. Has resemblance to issue #2782

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions