Client use aiohttp, will be hang up ,when server return 304 #505
Closed
Description
As http rfc2616( http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html):
4.4 Message Length
1.Any response message which "MUST NOT" include a message-body (such as the 1xx, 204, and 304 responses and any response to a HEAD request) is always terminated by the first empty line after the header fields, regardless of the entity-header fields present in the message.
So, server return 304 without content-length header .but aiohttp client will waiting for content-length.