mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
parent
880bc0d8e3
commit
303e0cfd86
@ -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…
x
Reference in New Issue
Block a user