Skip to content

Commit

Permalink
Amends 4ce3c4a sending the chunk signal by write_eof equal than write (
Browse files Browse the repository at this point in the history
  • Loading branch information
pfreixes authored Apr 5, 2018
1 parent 6a6ab7d commit c5d3999
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiohttp/http_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ async def write_eof(self, chunk=b''):
if self._eof:
return

if chunk and self._on_chunk_sent is not None:
await self._on_chunk_sent(chunk)

if self._compress:
if chunk:
chunk = self._compress.compress(chunk)
Expand All @@ -122,9 +125,6 @@ async def write_eof(self, chunk=b''):
chunk = b'0\r\n\r\n'

if chunk:
if self._on_chunk_sent is not None:
await self._on_chunk_sent(chunk)

self._write(chunk)

await self.drain()
Expand Down

0 comments on commit c5d3999

Please sign in to comment.