mirror of https://github.com/docker/docker-py.git
Python 3 sees empty lines as \n instead of \r\n (wat). Fixes #257
This commit is contained in:
parent
f06c295d6c
commit
9170219188
|
@ -227,7 +227,7 @@ class Client(requests.Session):
|
|||
# Because Docker introduced newlines at the end of chunks in v0.9,
|
||||
# and only on some API endpoints, we have to cater for both cases.
|
||||
size_line = socket.readline()
|
||||
if size_line == '\r\n':
|
||||
if size_line == '\r\n' or size_line == '\n':
|
||||
size_line = socket.readline()
|
||||
|
||||
size = int(size_line, 16)
|
||||
|
|
Loading…
Reference in New Issue