mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-19 22:39:38 +00:00
Header.Get/Set re-canonicalize and allocate whenever the passed key isn't already in canonical MIME header form. Sec-WebSocket-Key, WWW-Authenticate, and content-type all miss the fast path; switch to their canonical forms (Sec-Websocket-Key, Www-Authenticate, Content-Type). Enable the canonicalheader linter to catch future regressions, excluded in test files since those already use non-canonical casing in several places without a perf-sensitive path behind them. |
||
|---|---|---|
| .. | ||
| brotli | ||
| gzip | ||
| testdata | ||
| zstd | ||
| caddyfile.go | ||
| encode.go | ||
| encode_bench_test.go | ||
| encode_conformance_test.go | ||
| encode_harness_test.go | ||
| encode_test.go | ||
| export_test.go | ||