We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb51f56 commit f19a4f1Copy full SHA for f19a4f1
aiohttp/streams.py
@@ -535,11 +535,7 @@ async def readany(self) -> bytes:
535
return b""
536
537
async def readchunk(self) -> Tuple[bytes, bool]:
538
- # if we return (b"", True) right away
539
- # then iter_chunks() will loop forever because it expects (b"", False)
540
- # this code makes sure that we yield (b"", False) first
541
if not self._read_eof_chunk:
542
- # do this only once
543
self._read_eof_chunk = True
544
return (b"", False)
545
0 commit comments