@marcel91200 / caddy Mirror · read-only / commits / bea8dedf
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

httpcaddyfile: Move header before redir (fixes #3148)

Matthew Holt committed Mar 22, 2020 at 09:04 UTC bea8dedfb2b3bc11ad910853bcbe5601c729b548
1 file changed +5 -2
caddyconfig/httpcaddyfile/directives.go
+5 -2
@@ -28,21 +28,24 @@ import (
28 // directiveOrder specifies the order
29 // to apply directives in HTTP routes.
30 var directiveOrder = []string{
31 + "header",
32 +
33 "redir",
34 "rewrite",
35
36 "root",
37
38 + // URI manipulation
39 "uri",
40 "try_files",
41
39 - // middleware handlers that typically wrap responses
42 + // middleware handlers; some wrap responses
43 "basicauth",
41 - "header",
44 "request_header",
45 "encode",
46 "templates",
47
48 + // special routing directives
49 "handle",
50 "route",
51