From b82e22b459b9f81278810dc32916ca270efa888c Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Fri, 11 Mar 2022 18:55:37 +0300 Subject: caddyhttp: retain all values of vars matcher when specified multiple times (#4629) --- modules/caddyhttp/vars.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/vars.go') diff --git a/modules/caddyhttp/vars.go b/modules/caddyhttp/vars.go index 91a2072..b0f10a7 100644 --- a/modules/caddyhttp/vars.go +++ b/modules/caddyhttp/vars.go @@ -91,7 +91,7 @@ func (m *VarsMatcher) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { if len(vals) == 0 { return d.Errf("malformed vars matcher: expected at least one value to match against") } - (*m)[field] = vals + (*m)[field] = append((*m)[field], vals...) if d.NextBlock(0) { return d.Err("malformed vars matcher: blocks are not supported") } -- cgit v1.2.3