aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/headers
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-01-22 09:33:53 -0700
committerMatthew Holt <[email protected]>2020-01-22 09:33:53 -0700
commit2105d59936039f6ddbe3214711d160e1804523a0 (patch)
treea3a52b51c61b16cb7e9f3ee57ff8c60b4d5f7897 /modules/caddyhttp/headers
parent9a1370c2c8fb2c52585971d9eaa6f0c4383cb869 (diff)
downloadcaddy-2105d59936039f6ddbe3214711d160e1804523a0.tar.gz
caddy-2105d59936039f6ddbe3214711d160e1804523a0.zip
httpcaddyfile: Rename 'headers' directive to 'header'
Diffstat (limited to 'modules/caddyhttp/headers')
-rw-r--r--modules/caddyhttp/headers/caddyfile.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/headers/caddyfile.go b/modules/caddyhttp/headers/caddyfile.go
index 55ad99178..ee1a81a56 100644
--- a/modules/caddyhttp/headers/caddyfile.go
+++ b/modules/caddyhttp/headers/caddyfile.go
@@ -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>
// }