python-hyper / h2

Pure-Python HTTP/2 protocol implementation
https://python-hyper.org/
MIT License
968 stars 157 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