caddy/modules
a 401582cccf
templates: avoid zero content length for bodyless responses (#8153)
* templates: avoid zero content length for bodyless responses

Drop Content-Length for HEAD and statuses that cannot carry a body instead of using the empty template buffer length. Continue setting the rendered length for ordinary responses.

AI-assisted-by: Jcode (OpenAI)

* templates: test Content-Length for HEAD, 204 and 304 responses

* templates: omit Content-Length for 2xx responses to CONNECT

RFC 9110 section 8.6 forbids Content-Length in any 2xx response to
CONNECT. Non-2xx CONNECT responses still report the rendered length.
2026-10-13 13:55:30 +10:00
..
caddyevents events: tell CertMagic which events are worth emitting (#8010) 2026-10-03 01:03:20 +10:00
caddyfs events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
caddyhttp templates: avoid zero content length for bodyless responses (#8153) 2026-10-13 13:55:30 +10:00
caddypki acmeserver: say when the CA database is locked by another process (#8007) 2026-09-11 14:49:31 +10:00
caddytls caddytls: Send ECH retry configs when rejecting ECH (#8142) 2026-10-06 08:54:39 +10:00
filestorage
internal/network reverseproxy: deduplicate DNS SRV+A discovery into modules/internal/network (#7790) 2026-10-12 10:37:55 +00:00
logging fix: close resources on error paths (#7940) 2026-08-16 21:02:39 +10:00
metrics
standard