diff options
author | Francis Lavoie <[email protected]> | 2022-01-04 12:10:11 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-04 10:10:11 -0700 |
commit | e9dde230247ec5525d4c3803ff99c97e0dc8e348 (patch) | |
tree | c08a76dcd9efd6ce224250aa9c23a1a81b7fd079 /modules/caddyhttp/headers | |
parent | 3fe2c73dd04f7769a9d9673236cb94b79ac45659 (diff) | |
download | caddy-e9dde230247ec5525d4c3803ff99c97e0dc8e348.tar.gz caddy-e9dde230247ec5525d4c3803ff99c97e0dc8e348.zip |
headers: Fix `+` in Caddyfile to properly append rather than set (#4506)
Diffstat (limited to 'modules/caddyhttp/headers')
-rw-r--r-- | modules/caddyhttp/headers/caddyfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/headers/caddyfile.go b/modules/caddyhttp/headers/caddyfile.go index c6ea2fb03..eec11490c 100644 --- a/modules/caddyhttp/headers/caddyfile.go +++ b/modules/caddyhttp/headers/caddyfile.go @@ -222,7 +222,7 @@ func applyHeaderOp(ops *HeaderOps, respHeaderOps *RespHeaderOps, field, value, r if ops.Add == nil { ops.Add = make(http.Header) } - ops.Add.Set(field[1:], value) + ops.Add.Add(field[1:], value) case strings.HasPrefix(field, "-"): // delete ops.Delete = append(ops.Delete, field[1:]) |