summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-01-22 09:33:53 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2020-01-22 09:33:53 -0700
commit2105d59936039f6ddbe3214711d160e1804523a0 (patch)
treea3a52b51c61b16cb7e9f3ee57ff8c60b4d5f7897 /modules
parent9a1370c2c8fb2c52585971d9eaa6f0c4383cb869 (diff)
httpcaddyfile: Rename 'headers' directive to 'header'
Diffstat (limited to 'modules')
-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 55ad991..ee1a81a 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>
// }