caddyhttp: Document dropping underscore headers

This commit is contained in:
Matthew Holt 2026-06-18 09:34:04 -06:00
parent 6ab855d3c4
commit 30f0ddd912
No known key found for this signature in database

View file

@ -46,6 +46,13 @@ func init() {
// only on the HTTPS port but which do not have any TLS connection policies
// defined by adding a good, default TLS connection policy.
//
// Similar to how other popular web servers work, incoming request header fields
// with underscores are ignored/dropped implicitly to mitigate security risks.
// Specific headers to allow can be explicitly configured using
// `expected_underscore_headers`.
//
// ### Placeholders
//
// In HTTP routes, additional placeholders are available (replace any `*`):
//
// Placeholder | Description