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
Closed

net/http: PostForm/Post/Get option to overwrite header for request #10366

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

Comments

@c4pone
Copy link

c4pone 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
Copy link
Contributor

bradfitz commented Apr 8, 2015

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

@gopherbot
Copy link

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

@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.
Projects
None yet
Development

No branches or pull requests

3 participants