Skip to content

[2.0.x] fix: normalize outbound HTTP/2 fields consistently (#1463) - #1515

Merged
pjfanning merged 1 commit into
apache:2.0.xfrom
pjfanning:backport-1463-2.0.x
Nov 19, 2026
Merged

pjfanning merged 1 commit into
apache:2.0.xfrom
pjfanning:backport-1463-2.0.x

Conversation

@pjfanning

Copy link
Copy Markdown
Member

Motivation:
HTTP/2 field restrictions apply to initial headers and trailers.
Connection-specific fields set as raw or custom headers, or in trailers,
were not consistently suppressed.

Modification:
Share case-insensitive suppression of Connection, Keep-Alive,
Proxy-Connection, Transfer-Encoding and Upgrade across modeled, raw and
custom fields, retaining TE: trailers only in initial requests.

Result:
Outbound field sections follow a consistent policy without changing
HTTP/1 behavior.

Tests:

  • http2-tests/testOnly HttpMessageRenderingSpec: 34 passed
  • http-core/mimaReportBinaryIssues: passed

References:
Backport of #1463 (c6184f0)

Motivation:
HTTP/2 field restrictions apply to initial headers and trailers.
Connection-specific fields set as raw or custom headers, or in trailers,
were not consistently suppressed.

Modification:
Share case-insensitive suppression of Connection, Keep-Alive,
Proxy-Connection, Transfer-Encoding and Upgrade across modeled, raw and
custom fields, retaining TE: trailers only in initial requests.

Result:
Outbound field sections follow a consistent policy without changing
HTTP/1 behavior.

Tests:
- http2-tests/testOnly HttpMessageRenderingSpec (backport of apache#1463)

References:
Backport of apache#1463 (c6184f0)
@pjfanning pjfanning added this to the 2.0.1 milestone Nov 19, 2026
@pjfanning
pjfanning merged commit 378d763 into apache:2.0.x Nov 19, 2026
6 checks passed
@pjfanning
pjfanning deleted the backport-1463-2.0.x branch November 19, 2026 20:43
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.

3 participants