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

Fix/incorrect vary header #285

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

stanleyxu2005
Copy link
Contributor

The PR is about to fix a bug reported by #279
The PR will set response header vary only when compression actually happened

Checklist

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

Is there a test that will fail without this change?

@stanleyxu2005
Copy link
Contributor Author

Is there a test that will fail without this change?

Yes. I see roughly ~40 test cases failing before moving setVaryHeader around in my 2nd commit of the PR.

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Member

@gurgunday gurgunday left a comment

Choose a reason for hiding this comment

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

lgtm

@gurgunday gurgunday merged commit 11a1849 into fastify:master Mar 27, 2024
19 checks passed
@stanleyxu2005 stanleyxu2005 deleted the fix/incorrect-vary-header branch March 28, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants