mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:36:27 +03:00
httpcaddyfile: Rename 'headers' directive to 'header'
This commit is contained in:
parent
9a1370c2c8
commit
2105d59936
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ var directiveOrder = []string{
|
|||
"try_files",
|
||||
|
||||
"basicauth",
|
||||
"headers",
|
||||
"header",
|
||||
"request_header",
|
||||
"encode",
|
||||
"templates",
|
||||
|
|
|
@ -23,14 +23,14 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
httpcaddyfile.RegisterHandlerDirective("headers", parseCaddyfile)
|
||||
httpcaddyfile.RegisterHandlerDirective("header", parseCaddyfile)
|
||||
httpcaddyfile.RegisterHandlerDirective("request_header", parseReqHdrCaddyfile)
|
||||
}
|
||||
|
||||
// parseCaddyfile sets up the handler for response headers from
|
||||
// Caddyfile tokens. Syntax:
|
||||
//
|
||||
// headers [<matcher>] [[+|-]<field> [<value|regexp>] [<replacement>]] {
|
||||
// header [<matcher>] [[+|-]<field> [<value|regexp>] [<replacement>]] {
|
||||
// [+]<field> [<value|regexp> [<replacement>]]
|
||||
// -<field>
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue