Skip to content

Updated HTTP/2 pseudo-headers enforcement logic - #256

Merged
bneradt merged 2 commits into
yahoo:masterfrom
lzx404243:h2-connect-enforcement
Jun 6, 2023
Merged

bneradt merged 2 commits into
yahoo:masterfrom
lzx404243:h2-connect-enforcement

Conversation

@lzx404243

Copy link
Copy Markdown
Contributor

The pseudo-header validation logic is updated to enforce the following specified by the RFC:

Request

non-CONNECT request

should at least include the :method , :scheme and :path pseudo-header fields. :authority is not strictly requried.

CONNECT request
  • must omit the :scheme and :path pseudo-header fields.
  • must include the :authority pseudo-header field.

Response

should include and only include the :status pseudo-header field.

This resolves #252.

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@bneradt bneradt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Thank you for working on this!

Comment thread local/src/core/YamlParser.cc Resolved
@lzx404243
lzx404243 requested a review from bneradt June 6, 2023 18:23
@bneradt
bneradt merged commit cc61d12 into yahoo:master Jun 6, 2023
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.

Incorrect Enforcement of HTTP/2 Pseudo Headers for CONNECT Requests

2 participants