python-hyper / h2

HTTP/2 State-Machine based protocol implementation
https://h2.readthedocs.io/en/stable
MIT License
963 stars 151 forks source link

”Header block missing mandatory :path header” when using CONNECT as per the HTTP/2 specification #1247

Open Gallaecio opened 3 years ago

Gallaecio commented 3 years ago

A CONNECT request without a :path header, which must be omitted according to the specification:

The ":scheme" and ":path" pseudo-header fields MUST be omitted.

Causes ProtocolError('Header block missing mandatory :path header')

Related to #319