mirror of https://github.com/docker/docker-py.git
Merge branch 'py3-json' of https://github.com/ssanderson/docker-py into ssanderson-py3-json
This commit is contained in:
commit
7e600a3fe7
|
|
@ -169,7 +169,7 @@ class Client(requests.Session):
|
||||||
if reader._fp.chunk_left:
|
if reader._fp.chunk_left:
|
||||||
data += reader.read(reader._fp.chunk_left)
|
data += reader.read(reader._fp.chunk_left)
|
||||||
if decode:
|
if decode:
|
||||||
data = json.loads(data)
|
data = json.loads(data.decode('utf-8'))
|
||||||
yield data
|
yield data
|
||||||
else:
|
else:
|
||||||
# Response isn't chunked, meaning we probably
|
# Response isn't chunked, meaning we probably
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue