Enhance header filtering in getHeadersApplicableToAllResources function to exclude falsy values#588
Merged
vejja merged 3 commits intoBaroshem:mainfrom Dec 30, 2024
Merged
Conversation
…on to exclude falsy values
vejja
requested changes
Dec 19, 2024
Collaborator
|
@ivanvakulov Thank you very much for this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
Author
|
@vejja Thank you for the review. I've added new tests for publicAssets to ensure there are no empty headers and that headers are correctly set according to the routeRules. |
vejja
approved these changes
Dec 19, 2024
Collaborator
|
@Baroshem LGTM |
Baroshem
approved these changes
Dec 23, 2024
Owner
Baroshem
left a comment
There was a problem hiding this comment.
Amazing work @ivanvakulov
Thanks @vejja for checking it!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Types of changes
Description
This pull request includes a small change to the
src/utils/headers.tsfile. The change ensures that only headers with non-falsy values are included in the result.src/utils/headers.ts: Added a filter to remove headers with falsy values in thegetHeadersApplicableToAllResourcesfunction.Checklist: