@marcel91200 / caddy Mirror · read-only / commits / 2ab2d5bf
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

Forgot to commit caddyfile.go changes in last commit

Matthew Holt committed Sep 13, 2019 at 23:38 UTC 2ab2d5bf9e2634fd2e06536c53f1bb907cd71356
1 file changed +3 -3
modules/caddyhttp/headers/caddyfile.go
+3 -3
@@ -38,7 +38,7 @@ func init() {
38 // Either a block can be opened or a single header field can be configured
39 // in the first line, but not both in the same directive.
40 func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
41 - hdr := new(Headers)
41 + hdr := new(Handler)
42 for h.Next() {
43 // first see if headers are in the initial line
44 var hasArgs bool
@@ -74,7 +74,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
74 // request_header [<matcher>] [[+|-]<field> <value>]
75 //
76 func parseReqHdrCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) {
77 - hdr := new(Headers)
77 + hdr := new(Handler)
78 for h.Next() {
79 if !h.NextArg() {
80 return nil, h.ArgErr()
@@ -109,7 +109,7 @@ func parseReqHdrCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler,
109 return hdr, nil
110 }
111
112 -func processCaddyfileLineRespHdr(hdr *Headers, field, value string) {
112 +func processCaddyfileLineRespHdr(hdr *Handler, field, value string) {
113 if hdr.Response == nil {
114 hdr.Response = &RespHeaderOps{
115 HeaderOps: new(HeaderOps),