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 0e28c8f commit 16b418bCopy full SHA for 16b418b
requests/models.py
@@ -813,8 +813,7 @@ def generate():
813
# Special case for urllib3.
814
if hasattr(self.raw, "stream"):
815
try:
816
- for chunk in self.raw.stream(chunk_size, decode_content=True):
817
- yield chunk
+ yield from self.raw.stream(chunk_size, decode_content=True)
818
except ProtocolError as e:
819
raise ChunkedEncodingError(e)
820
except DecodeError as e:
0 commit comments