Just improved Caddy performance by fixing header casing on the hot path! 🚀 When...
Kévin Dunglas @dunglas@mastodon.social
Just improved Caddy performance by fixing header casing on the hot path! 🚀
When using Go's net/http, make sure to use canonical HTTP header casing (e.g. Content-Type instead of content-type). Non-canonical keys trigger string formatting and allocations on every lookup.
https://github.com/caddyserver/caddy/pull/7911#pullrequestreview-4817897747