python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

HTTP/1.1 parser fix, when response contains empty reason #325

Closed ech0-py closed 7 years ago

ech0-py commented 7 years ago

Sometimes response can come w/o reason-phrase. Changes made according to the rfc2616 (6.1.1): The client is not required to examine or display the Reason- Phrase.

ech0-py commented 7 years ago

@Lukasa thanks for the advice! Fixed according to the RFC and PEP