Merge branch 'py3-json' of https://github.com/ssanderson/docker-py into ssanderson-py3-json

This commit is contained in:
Joffrey F 2015-03-04 13:35:35 -08:00
commit 7e600a3fe7
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class Client(requests.Session):
if reader._fp.chunk_left:
data += reader.read(reader._fp.chunk_left)
if decode:
data = json.loads(data)
data = json.loads(data.decode('utf-8'))
yield data
else:
# Response isn't chunked, meaning we probably