Commit 17606113 authored by Josh Martone's avatar Josh Martone Committed by GitHub
Browse files

Handles blank keep-alive new lines

Added .strip() to read_line() to handle keep-alive new lines
parent 6ac51f3a
......@@ -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