Repository navigation
Treat the HTTP/2 Expect field value as case-insensitive - #1263
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
arturobernalg
force-pushed
the
http2-expect-case-insensitive
branch
from
November 20, 2026 14:21
1be0e7f to
6dd90b1
Compare
RFC 9110, section 10.1.1 defines the Expect field value as case-insensitive. HTTP/1.1 already compares 100-continue ignoring case but HTTP/2 did not, so no 100 (Continue) response was sent for a request with "Expect: 100-Continue".
arturobernalg
force-pushed
the
http2-expect-case-insensitive
branch
from
November 20, 2026 16:26
6dd90b1 to
8dc0ab8
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC 9110, section 10.1.1 says "The Expect field value is case-insensitive." HTTP/1.1 already compares
100-continueignoring case (Http11Processor.prepareExpectation), but HTTP/2 usedequals()inStream.emitHeader. A request withExpect: 100-Continueover HTTP/2 therefore never got a 100 (Continue) response.With curl over h2c and an 8 second expect timeout, a 200 KB POST took about 8 s with
100-Continueand a few milliseconds with100-continue. With the change, both take a few milliseconds. httpd 2.4.69 (mod_http2) and Netty (HttpUtil.is100ContinueExpected) accept any case.testSendAckMixedCase in TestHttp2Section_8_1 fails without the change; testSendAck checks that the lower case value still gets the 100 (Continue) response.