Skip to content

Auto-port 5.0: H2: Add test for header value validation#16740

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16737-to-5.0
May 4, 2026
Merged

Auto-port 5.0: H2: Add test for header value validation#16740
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16737-to-5.0

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16737 to 5.0
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)
@normanmaurer normanmaurer merged commit 21c63e3 into 5.0 May 4, 2026
13 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16737-to-5.0 branch May 4, 2026 09:36
@normanmaurer normanmaurer modified the milestone: 5.0.0.Final May 4, 2026
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