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

Keep all vary header values when adding Origin #1083

Merged
merged 1 commit into from
Mar 9, 2024
Merged

Keep all vary header values when adding Origin #1083

merged 1 commit into from
Mar 9, 2024

Conversation

Jul13nT
Copy link
Contributor

@Jul13nT Jul13nT commented Feb 29, 2024

When a backend response contains multiple values for the Vary header, like "Vary: header1, header2", the resulting Vary header response from haproxy is : "Vary: header2, Origin".
This is linked to this PR : #861

The official documentation states that req.hdr (or res.hdr) returns "only the last comma-separated value of the header".
So it should be res.fhdr instead.

@jcmoraisjr
Copy link
Owner

Lgtm thanks! Merging now.

@jcmoraisjr jcmoraisjr merged commit e3953cf into jcmoraisjr:master Mar 9, 2024
1 check passed
@Jul13nT
Copy link
Contributor Author

Jul13nT commented Mar 20, 2024

Thanks for merging. Have you planned to make a new release with this fix?

@jcmoraisjr
Copy link
Owner

We've a few bugs in the queue to be fixed, and a new round of releases should be issued just after that. It should be within a few weeks from now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants