diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-11 18:48:37 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-11 18:48:37 -0600 |
commit | 005a11cf4b0af5bfbbb72f8572681b327675541c (patch) | |
tree | ba075312bab40d49e66cb9fe24f722896b99028c /caddyconfig | |
parent | 194df652eb9d92bcc61d83055aebe176adc8fa2d (diff) |
headers: New 'request_header' directive; handle Host header specially
Before this change, only response headers could be manipulated with the
Caddyfile's 'header' directive.
Also handle the request Host header specially, since the Go standard
library treats it separately from the other header fields...
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/httpcaddyfile/directives.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go index 573db8d..14c5f44 100644 --- a/caddyconfig/httpcaddyfile/directives.go +++ b/caddyconfig/httpcaddyfile/directives.go @@ -30,6 +30,7 @@ var defaultDirectiveOrder = []string{ "rewrite", "try_files", "headers", + "request_header", "encode", "templates", "redir", |