Skip to content

non-canonical-header

Detect non-canonical constant keys in http.Header reads.

Updated View as Markdown

Default severity: warning

Direct map reads do not canonicalize header keys. Header method calls and map writes are not reported.

Bad

value := header["content-type"]

Good

value := header["Content-Type"]
Navigation

Type to search…

↑↓ navigate↵ selectEsc close