chore: preserve canonical header keys (#7964)

pull/7975/head^2
Zen Dodd 2026-08-31 02:26:18 +10:00 committed by GitHub
parent 502691f518
commit 8257349b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,13 @@ linters:
- whitespace
- zerologlint
settings:
canonicalheader:
# Match net/http's canonical MIME map keys to avoid re-canonicalisation.
exclusions:
- Etag
- Sec-Websocket-Key
- Te
- Www-Authenticate
staticcheck:
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1006", "-QF1008"] # default, and exclude 1 more undesired check
errcheck: