GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — http2: preserve multiple content-encoding values by inoway46 · Pull Request #67184 · nodejs/node Conversation
Contributor
HTTP/2 currently treats Content-Encoding as single-valued: separate 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 This changes incoming header values and removes an outgoing validation error, so it may warrant semver-major treatment. Fixes: #67151
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsRemove 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 <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
inoway46
marked this pull request as ready for review
|
There was an error while loading. Please reload this page.
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:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good find. I don't think this is semver-major, seems like a clear bug imo.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in b48b454 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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: #67151 Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #67184 Reviewed-By: Tim Perry <[email protected]>
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: #67151 Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #67184 Reviewed-By: Tim Perry <[email protected]>
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: #67151 Assisted-by: Codex Signed-off-by: inoway46 <[email protected]> PR-URL: #67184 Reviewed-By: Tim Perry <[email protected]>
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 <[email protected]> PR-URL: nodejs#67184 Reviewed-By: Tim Perry <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
http2: content-encoding is incorrectly listed in kSingleValueHeaders
There was an error while loading. Please reload this page.