Skip to content

AssertionError on HTTP responses without a Content-Length #1531

@aaugustin

Description

@aaugustin

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions