GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: preserve multiple content-encoding values by inoway46 · Pull Request #67184 · nodejs/node

Conversation

@inoway46

@inoway46 inoway46 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

HTTP/2 currently treats Content-Encoding as single-valued: separate gzip and br fields expose only gzip in 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 kSingleValueFields so 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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@inoway46
http2: preserve multiple content-encoding values
e79fa19
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]>
@nodejs-github-bot

nodejs-github-bot commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/http2
  • @nodejs/net
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Nov 1, 2026
@inoway46
inoway46 marked this pull request as ready for review November 1, 2026 12:24
@codecov

codecov Bot commented Nov 1, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.71%. Comparing base (bf246cf) to head (e79fa19).
⚠️ Report is 26 commits behind head on main.

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     
Files with missing lines Coverage Δ
lib/internal/http2/util.js 92.92% <ø> (-0.02%) ⬇️

... and 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

pimterry
pimterry approved these changes Nov 2, 2026
View reviewed changes

@pimterry pimterry left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for 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.

Uh oh!

There was an error while loading. Please reload this page.

inoway46 reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@pimterry pimterry added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 2, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 2, 2026
@nodejs-github-bot

nodejs-github-bot commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/78789/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@inoway46 inoway46 added author ready PRs with CI started, the required approvals, and no outstanding review comments. and removed needs-ci PRs that need a full CI run. labels Nov 2, 2026
bjohansebas
bjohansebas approved these changes Nov 2, 2026
View reviewed changes
@pimterry pimterry added the commit-queue PRs queued for automated landing through the Commit Queue. label Nov 2, 2026
@nodejs-github-bot nodejs-github-bot added the lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. label Nov 3, 2026
@nodejs-github-bot
nodejs-github-bot merged commit b48b454 into nodejs:main Nov 8, 2026
105 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Landed in b48b454

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot removed commit-queue PRs queued for automated landing through the Commit Queue. lacks-second-approval Commit Queue PRs awaiting a second collaborator approval or completion of the required wait. labels Nov 8, 2026
aduh95 pushed a commit that referenced this pull request Nov 11, 2026
@inoway46 @aduh95
http2: preserve multiple content-encoding values
e1ae779
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]>
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
2026-11-12, Version 27.0.0-alpha.0.1.0 (Alpha) #67415
Merged
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@inoway46 @aduh95
http2: preserve multiple content-encoding values
ec5124d
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]>
aduh95 pushed a commit that referenced this pull request Nov 12, 2026
@inoway46 @aduh95
http2: preserve multiple content-encoding values
4c9f878
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]>
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
2026-11-30, Version 26.14.0 'Lithium' (LTS) #67664
Open
gabylb pushed a commit to gabylb/node that referenced this pull request Nov 27, 2026
@inoway46 @gabylb
http2: preserve multiple content-encoding values
77ba1cd
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pimterry pimterry pimterry approved these changes
+1 more reviewer
@bjohansebas bjohansebas bjohansebas approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http2 Issues and PRs related to the http2 subsystem.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

http2: content-encoding is incorrectly listed in kSingleValueHeaders

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@inoway46 @nodejs-github-bot @pimterry @bjohansebas
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.