@marcel91200 / caddy Mirror · read-only / commits / b82e22b4
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 13, 21:45 UTC

caddyhttp: retain all values of vars matcher when specified multiple times (#4629)

Mohammed Al Sahaf committed Mar 11, 2022 at 18:55 UTC b82e22b459b9f81278810dc32916ca270efa888c
1 file changed +1 -1
modules/caddyhttp/vars.go
+1 -1
@@ -91,7 +91,7 @@ func (m *VarsMatcher) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
91 if len(vals) == 0 {
92 return d.Errf("malformed vars matcher: expected at least one value to match against")
93 }
94 - (*m)[field] = vals
94 + (*m)[field] = append((*m)[field], vals...)
95 if d.NextBlock(0) {
96 return d.Err("malformed vars matcher: blocks are not supported")
97 }