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

Python 3 sees empty lines as \n instead of \r\n (wat). Fixes #257

üst f06c295d
......@@ -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)
......
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