Kaydet (Commit) 789c22b9 authored tarafından Joffrey F's avatar Joffrey F

Merge pull request #155 from bfirsh/fix-concat-string-with-bytes

Fix _stream_result concatenating bytes with str
......@@ -225,7 +225,7 @@ class Client(requests.Session):
def _stream_result(self, response):
"""Generator for straight-out, non chunked-encoded HTTP responses."""
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
if line:
yield line + '\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment