Skip to content

fix: Preserving HTTP field value bytes in bs serialization - #194

Merged
dadrus merged 1 commit into
mainfrom
fix/bs_serialization
Nov 6, 2026
Merged

dadrus merged 1 commit into
mainfrom
fix/bs_serialization

Conversation

@dadrus

@dadrus dadrus commented Nov 6, 2026

Copy link
Copy Markdown
Owner

This PR fixes byte sequence serialization (;bs) to preserve HTTP field value bytes. Only surrounding HTTP whitespace is removed and obsolete line folding is normalized, as required by RFC 9421. This prevents distinct field values from producing identical signature bases.

@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.92%. Comparing base (59f96b9) to head (336d04f).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   97.92%   97.92%   -0.01%     
==========================================
  Files          22       22              
  Lines        1493     1492       -1     
==========================================
- Hits         1462     1461       -1     
  Misses         31       31              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@dadrus
dadrus merged commit 50e1c32 into main Nov 6, 2026
10 checks passed
@dadrus
dadrus deleted the fix/bs_serialization branch November 6, 2026 22:25
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.

1 participant