chore: preserve canonical header keys (#7964)
parent
502691f518
commit
8257349b58
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue