mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-19 05:42:45 +08:00
httpcaddyfile: Move header before redir (fixes #3148)
This commit is contained in:
parent
f2ce81cc8b
commit
bea8dedfb2
|
@ -28,21 +28,24 @@ import (
|
|||
// directiveOrder specifies the order
|
||||
// to apply directives in HTTP routes.
|
||||
var directiveOrder = []string{
|
||||
"header",
|
||||
|
||||
"redir",
|
||||
"rewrite",
|
||||
|
||||
"root",
|
||||
|
||||
// URI manipulation
|
||||
"uri",
|
||||
"try_files",
|
||||
|
||||
// middleware handlers that typically wrap responses
|
||||
// middleware handlers; some wrap responses
|
||||
"basicauth",
|
||||
"header",
|
||||
"request_header",
|
||||
"encode",
|
||||
"templates",
|
||||
|
||||
// special routing directives
|
||||
"handle",
|
||||
"route",
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user