From 005a11cf4b0af5bfbbb72f8572681b327675541c Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 11 Sep 2019 18:48:37 -0600 Subject: 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... --- caddyconfig/httpcaddyfile/directives.go | 1 + 1 file changed, 1 insertion(+) (limited to 'caddyconfig') 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", -- cgit v1.2.3