summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-09-13 23:38:52 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-09-13 23:38:52 -0600
commit2ab2d5bf9e2634fd2e06536c53f1bb907cd71356 (patch)
treef30ffaeede1010133e488ac84562124e86a2813a /modules/caddyhttp
parentc09e86fddc8a6c0da59fd62a186cab1482faae2a (diff)
Forgot to commit caddyfile.go changes in last commit
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/headers/caddyfile.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddyhttp/headers/caddyfile.go b/modules/caddyhttp/headers/caddyfile.go
index d806005..2fd6f06 100644
--- a/modules/caddyhttp/headers/caddyfile.go
+++ b/modules/caddyhttp/headers/caddyfile.go
@@ -38,7 +38,7 @@ func init() {
// Either a block can be opened or a single header field can be configured
// in the first line, but not both in the same directive.
func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
- hdr := new(Headers)
+ hdr := new(Handler)
for h.Next() {
// first see if headers are in the initial line
var hasArgs bool
@@ -74,7 +74,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
// request_header [<matcher>] [[+|-]<field> <value>]
//
func parseReqHdrCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
- hdr := new(Headers)
+ hdr := new(Handler)
for h.Next() {
if !h.NextArg() {
return nil, h.ArgErr()
@@ -109,7 +109,7 @@ func parseReqHdrCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler,
return hdr, nil
}
-func processCaddyfileLineRespHdr(hdr *Headers, field, value string) {
+func processCaddyfileLineRespHdr(hdr *Handler, field, value string) {
if hdr.Response == nil {
hdr.Response = &RespHeaderOps{
HeaderOps: new(HeaderOps),