When a client receives a non-101 response from a server without a Content-Length header, he must read until the end of the stream to get the complete HTTP response.
As a consequence, the Response event is generated after receive_eof and this assertion fails: assert not self.protocol.events_received() (in the asyncio and threading Connection classes).
When a client receives a non-101 response from a server without a Content-Length header, he must read until the end of the stream to get the complete HTTP response.
As a consequence, the Response event is generated after
receive_eof
and this assertion fails:assert not self.protocol.events_received()
(in the asyncio and threading Connection classes).