Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 06:00 UTC
chore: preserve canonical header keys (#7964)
Zen Dodd committed
Aug 31, 2026 at 02:26 UTC
8257349b5872d98052155e1f4fe5a79f2b4e8f26
1 file changed
+7
.golangci.yml
+7
@@ -48,6 +48,13 @@ linters:
48
- whitespace
49
- zerologlint
50
settings:
51
+ canonicalheader:
52
+ # Match net/http's canonical MIME map keys to avoid re-canonicalisation.
53
+ exclusions:
54
+ - Etag
55
+ - Sec-Websocket-Key
56
+ - Te
57
+ - Www-Authenticate
58
staticcheck:
59
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1006", "-QF1008"] # default, and exclude 1 more undesired check
60
errcheck: