projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.1.1
/
staticcheck
/
testdata
/
src
/
CheckCanonicalHeaderKey
/
CheckCanonicalHeaderKey.go
1
package pkg
2
3
import "net/http"
4
5
func fn() {
6
const hdr = "foo"
7
var r http.Request
8
h := http.Header{}
9
var m map[string][]string
10
_ = h["foo"] // want `keys in http\.Header are canonicalized`
11
_ = h[hdr] // want `keys in http\.Header are canonicalized`
12
h["foo"] = nil
13
_ = r.Header["foo"] // want `keys in http\.Header are canonicalized`
14
r.Header["foo"] = nil
15
_ = m["foo"]
16
}