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