Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

headers: Fix + in Caddyfile to properly append rather than set #4506

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

francislavoie
Copy link
Member

See https://caddy.community/t/only-one-header-link-applied/14571

In a single header handler, using + with the same field name multiple times would only use the last value, instead of adding each value.

Super simple fix, just need to use .Add() instead of .Set() if we're using the + operator.

@francislavoie francislavoie added bug 🐞 Something isn't working under review 🧐 Review is pending before merging labels Jan 4, 2022
@francislavoie francislavoie added this to the v2.5.0 milestone Jan 4, 2022
@francislavoie francislavoie requested a review from mholt January 4, 2022 10:32
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I guess that makes sense. 😄

@mholt mholt merged commit e9dde23 into master Jan 4, 2022
@mholt mholt deleted the fix-header-add branch January 4, 2022 17:10
@mholt mholt removed the under review 🧐 Review is pending before merging label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants