requests.core

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-17 06:41:11 -04:00
parent 1a09781fe3
commit a0d49aa495
+1 -1
View File
@@ -1161,7 +1161,7 @@ class AsyncResponse(Response):
DEFAULT_CHUNK_SIZE = 1
async def generate():
# Special case for urllib3.
# Special case for requests.core.
if hasattr(self.raw, 'stream'):
try:
async for chunk in self.raw.stream(