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: default User-Agent is invalid #9792
Comments
Also, since it seems like "1.1" might be the version of Go not the package, it might make sense to do something like
But I'm not sure if there is a version for standard packages. |
I've never had opinions on this. I believe @rsc picked this string on purpose. |
I have never seen anything about user-agent syntax before. Sorry. |
Here's the proposed fix - https://go-review.googlesource.com/#/c/9385/ |
CL https://golang.org/cl/9385 mentions this issue. |
I would like to put the Go version number in the User-Agent. Perhaps we only include it if it's not a dev release? So |
I agree with @bradfitz to not include the |
The default User-Agent
in the http package doesn't appear to be valid according to the User-Agent section of RFC 7231.
Go should have a properly formatted User-Agent. e.g.
The text was updated successfully, but these errors were encountered: