Conversation
…eader (#2531) The response header propagation append algorithm was creating multiple HTTP header lines instead of a single comma-separated value. Fix joins all values into one comma-separated string before writing to the client. Also adds unit tests for createMostRestrictivePolicy, AddCacheControlPolicyToRules, applyResponseRuleKeyValue, PropagatedHeaders, and NewHeaderPropagation, plus integration tests for the append algorithm's single-header contract. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Router-nonroot image scan passed✅ No security vulnerabilities found in image: |
StarpTech
requested changes
Feb 19, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2532 +/- ##
===========================================
- Coverage 89.99% 61.00% -28.99%
===========================================
Files 17 239 +222
Lines 3358 25416 +22058
Branches 893 0 -893
===========================================
+ Hits 3022 15506 +12484
- Misses 336 8589 +8253
- Partials 0 1321 +1321
🚀 New features to boost your workflow:
|
endigma
requested changes
Feb 19, 2026
Set-Cookie cannot be comma-combined per RFC 6265 because commas appear inside cookie values (e.g. Expires dates). The append algorithm now falls back to multi-line headers for Set-Cookie while comma-joining all other headers as intended. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 WalkthroughAdds comprehensive tests for header propagation and updates the response-header Append algorithm to join non-Set-Cookie values with commas while preserving Set-Cookie as separate header lines. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
Comment |
Simplify append logic, clean up test structure, use require.Len, and add missing test for duplicated defaults with append algorithm. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
endigma
approved these changes
Feb 19, 2026
Member
endigma
left a comment
There was a problem hiding this comment.
lgtm, nit (also applies to a few other tests)
Address remaining PR review nits: replace require.Len + require.Contains with require.ElementsMatch, and merge two nil-receiver subtests into one. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary by CodeRabbit
Bug Fixes
Tests
Fixes #2531. The response header
algorithm: appendwas producing multiple separate HTTP header lines instead of a single comma-separated value as documented. The fix joins all values into one comma-separated string inapplyResponseRuleKeyValue.Also adds 30 unit tests for previously uncovered functions (
createMostRestrictivePolicy,AddCacheControlPolicyToRules,applyResponseRuleKeyValue,PropagatedHeaders,NewHeaderPropagation), plus 7 new integration tests that explicitly assert the single-header contract and default value fallback behavior.Checklist