Skip to content

Auto-port 4.1: H2: Add test for header value validation#16741

Closed
netty-project-bot wants to merge 2 commits into
4.1from
auto-port-pr-16737-to-4.1
Closed

Auto-port 4.1: H2: Add test for header value validation#16741
netty-project-bot wants to merge 2 commits into
4.1from
auto-port-pr-16737-to-4.1

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16737 to 4.1
Cherry-picked commit: a50db19


Motivation:
We have header value validation for DefaultHttp2Headers, including pseudo headers, though it is opt-in and needs to be enabled explicitly.

However, we don't have an HTTP/2 test that shows it working.

Modification:
Add a test to DefaultHttp2HeadersTest that shows how value validation rejects headers with illegal token characters.

Result:
We have a test that proves H2 header value validation works.

Motivation:
We have header value validation for DefaultHttp2Headers, including
pseudo headers, though it is opt-in and needs to be enabled explicitly.

However, we don't have an HTTP/2 test that shows it working.

Modification:
Add a test to DefaultHttp2HeadersTest that shows how value validation
rejects headers with illegal token characters.

Result:
We have a test that proves H2 header value validation works.

(cherry picked from commit a50db19)
@chrisvest chrisvest deleted the auto-port-pr-16737-to-4.1 branch May 7, 2026 20:03
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