You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect Enforcement of HTTP/2 Pseudo Headers for CONNECT Requests #252
The HTTP/2 RFC specifies a required set of pseudo header fields for both requests (:method, :scheme, and :path) and responses (:status). It does, however, make an exception for HTTP/2 CONNECT requests:
All HTTP/2 requests MUST include exactly one valid value for the ":method", ":scheme", and ":path" pseudo-header fields, unless they are CONNECT requests (Section 8.5). An HTTP request that omits mandatory pseudo-header fields is malformed (Section 8.1.1).
And, in the section describing HTTP/2 and CONNECT:
The ":scheme" and ":path" pseudo-header fields MUST be omitted.
The pseudo header method enforcement mechanism in Proxy Verifier should be reviewed and corrected where necessary, both for CONNECT and other methods. Currently Proxy Verifier blocks RFC compliant CONNECT requests, so that clearly needs to be updated. I suppose for non-CONNECT requests, it shouldn't strictly require :authority either. So that should be updated too.
Activity
bneradt commentedon May 1, 2023
Marking this as a bug since it's against the spec to require
:schemeand:pathfor HTTP/2 connect requests.[-]HTTP/2: Support CONNECT Requests[/-][+]Incorrect Enforcement of HTTP/2 Pseudo Headers for CONNECT Requests[/+]Updated HTTP/2 pseudo-headers enforcement logic (#256)