Skip to content

Auto-port 5.0: Fix parsing HTTP chunks with multiple extensions#16587

Merged
chrisvest merged 3 commits into
5.0from
auto-port-pr-16579-to-5.0
Apr 9, 2026
Merged

Auto-port 5.0: Fix parsing HTTP chunks with multiple extensions#16587
chrisvest merged 3 commits into
5.0from
auto-port-pr-16579-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16579 to 5.0
Cherry-picked commit: b2c0dfd


Motivation:
The chunk extension parsing/validation logic did not correctly account for extensions with multiple key-value pairs.

Modification:

  • Adapt parsing logic to accept the repeatability of extension key-value pairs, and that chunk extensions can end on unquoted value tokens.
  • Add tests to capture these cases.

Result:
More correct HTTP chunk extension parsing.

The tests are lifted from #16542

Motivation:
The chunk extension parsing/validation logic did not correctly account
for extensions with multiple key-value pairs.

Modification:
- Adapt parsing logic to accept the repeatability of extension key-value
pairs, and that chunk extensions can end on unquoted value tokens.
- Add tests to capture these cases.

Result:
More correct HTTP chunk extension parsing.

The tests are lifted from #16542

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
(cherry picked from commit b2c0dfd)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Apr 3, 2026
@chrisvest chrisvest enabled auto-merge (squash) April 3, 2026 23:28
@chrisvest chrisvest merged commit d83abb5 into 5.0 Apr 9, 2026
13 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16579-to-5.0 branch April 9, 2026 01:01
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.

2 participants