forked from apple/servicetalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate HTTP/2 messages with malformed headers are rejected (apple#2359
) Motivation: From RFC7540: any message containing connection-specific header fields MUST be treated as malformed, see https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.2 Let's validate that we follow this part of the spec and the peer that originates the malformed message receives reset frame with `PROTOCOL_ERROR`. Modifications: - Add a test in `H2PriorKnowledgeFeatureParityTest` to verify client receives `Http2ResetFrame` with `PROTOCOL_ERROR`; Result: Validate client-server behavior for malformed messages.
- Loading branch information
1 parent
c35586a
commit ba7e826
Showing
1 changed file
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters