Skip to content

net/url: url.Parse decodes the Path portion of a URL #8248

@gopherbot

Description

@gopherbot

by stuart.carnie:

What does 'go version' print?

1.3

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

http://play.golang.org/p/ZAdvTSBQm5

What happened?

The Path section of the URL has been decoded, which creates a new (and invalid).
server.com is expecting to find a file in "/images" called
"http%3A%2F%2Fdroplr.static.s3.amazonaws.com%2Fassets%2Femail%2Fimg%2Ftips-mac%2Ftips-mac-4.jpg"
not
"http://droplr.static.s3.amazonaws.com/assets/email/img/tips-mac/tips-mac-4.jpg";

What should have happened instead?

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