mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:36:27 +03:00
httpcaddyfile: Move header before redir (fixes #3148)
This commit is contained in:
parent
f2ce81cc8b
commit
bea8dedfb2
1 changed files with 5 additions and 2 deletions
|
@ -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 a new issue