Commit c8e473ed authored by Aaron Hill's avatar Aaron Hill Committed by GitHub
Browse files

Merge pull request #896 from jmartone/patch-1

Handles blank keep-alive new lines
parents 6ac51f3a 17606113
......@@ -313,7 +313,7 @@ class Stream(object):
while self.running and not resp.raw.closed:
length = 0
while not resp.raw.closed:
line = buf.read_line()
line = buf.read_line().strip()
if not line:
self.listener.keep_alive() # keep-alive new lines are expected
elif line.strip().isdigit():
......
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