Skip to content

net/http: NewRequest modifies path #8767

Closed
@gopherbot

Description

@gopherbot

by stuart.carnie:

What does 'go version' print?
go version go1.3.1 darwin/amd64

What steps reproduce the problem?

Unable to fetch the following image URL when using net/http.Get or manually constructing
a http.NewRequest.  
https://d2mckvlpm046l3.cloudfront.net/787968d58b958e4aea105ad017f9a1abb6cce99c/http:%2F%2Fd.pr%2Fi%2F4EN8%2B.


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

What happened?
Server responds with a 404 Not Found

What should have happened instead?
Image data should have been returned in the response Body, such as when using a browser
or CLI tools like wget or curl

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions