Repository navigation
Conversation
Remove content-encoding from the single-value field set so incoming values are joined in order and outgoing arrays are accepted. Update the header documentation and add coverage for requests and responses, including repeated codings and strict validation options. For repeated fields, the incoming value now includes every coding instead of only the first. Outgoing arrays no longer throw ERR_HTTP2_HEADER_SINGLE_VALUE by default. Fixes: nodejs#67151 Assisted-by: Codex Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Collaborator
|
Review requested:
|
inoway46
marked this pull request as ready for review
November 1, 2026 12:24
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67184 +/- ##
==========================================
+ Coverage 90.69% 90.71% +0.01%
==========================================
Files 797 797
Lines 278787 278785 -2
Branches 53610 53616 +6
==========================================
+ Hits 252849 252895 +46
+ Misses 16310 16247 -63
- Partials 9628 9643 +15
🚀 New features to boost your workflow:
|
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.
HTTP/2 currently treats Content-Encoding as single-valued: separate
gzipandbrfields expose onlygzipin the headers object, and outgoing arrays are rejected by default.RFC 9110 §8.4 defines Content-Encoding as a list of content codings. §5.3 permits multiple field lines for list-valued fields, preserving their order when combined.
Remove Content-Encoding from
kSingleValueFieldsso incoming values are joined in order and outgoing arrays are accepted. Update the documentation and tests to cover requests and responses, including ordering and repeated codings.This changes incoming header values and removes an outgoing validation error, so it may warrant semver-major treatment.
Fixes: #67151