Skip to content

Commit

Permalink
caddyhttp: retain all values of vars matcher when specified multiple …
Browse files Browse the repository at this point in the history
…times (#4629)
  • Loading branch information
mohammed90 authored Mar 11, 2022
1 parent bf6a1b7 commit b82e22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b82e22b

Please sign in to comment.