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/http: PostForm/Post/Get option to overwrite header for request #10366

Closed
c4pone opened this issue Apr 8, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@c4pone
Copy link

commented Apr 8, 2015

PostForm/Post/Get should have a option to overwrite header parameter for that request.

For example:

var header map[string]string
header["User-Agent"] = "foobar"
client.Get("http://github.com", header)

@bradfitz bradfitz self-assigned this Apr 8, 2015

@bradfitz bradfitz added this to the Go1.5 milestone Apr 8, 2015

@bradfitz

This comment has been minimized.

Copy link
Member

commented Apr 8, 2015

There's at least a documentation omission here. The net/http docs say surprisingly little about User-Agent.

@gopherbot

This comment has been minimized.

Copy link

commented Apr 28, 2015

CL https://golang.org/cl/9410 mentions this issue.

@bradfitz bradfitz closed this in 339cf98 Apr 28, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.