parent
880bc0d8e3
commit
303e0cfd86
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ class Client(requests.Session):
|
||||||
def _stream_result(self, response):
|
def _stream_result(self, response):
|
||||||
"""Generator for straight-out, non chunked-encoded HTTP responses."""
|
"""Generator for straight-out, non chunked-encoded HTTP responses."""
|
||||||
self._raise_for_status(response)
|
self._raise_for_status(response)
|
||||||
for line in response.iter_lines(chunk_size=1):
|
for line in response.iter_lines(chunk_size=1, decode_unicode=True):
|
||||||
# filter out keep-alive new lines
|
# filter out keep-alive new lines
|
||||||
if line:
|
if line:
|
||||||
yield line + '\n'
|
yield line + '\n'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue