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: textproto.CanonicalMIMEHeaderKey WWW-Authenticate #45061

Closed
liril-net opened this issue Mar 16, 2021 · 1 comment
Closed

net: textproto.CanonicalMIMEHeaderKey WWW-Authenticate #45061

liril-net opened this issue Mar 16, 2021 · 1 comment

Comments

@liril-net
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.16 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOVERSION="go1.16"

What did you do?

https://play.golang.org/p/SF66Aho-RB4

What did you expect to see?

"WWW-Authenticate" RFC7235

What did you see instead?

"Www-Authenticate"

@tmthrgd
Copy link
Contributor

tmthrgd commented Mar 16, 2021

This is a duplicate of #18495 and the various linked issues. HTTP header keys are case insensitive and HTTP/2 isn’t case-preserving at all. This is just how the standard library works.

@golang golang locked and limited conversation to collaborators Mar 16, 2022
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