Receiving some messages with a differerent header line

This commit is contained in:
Louis-Philippe Huberdeau 2017-07-19 15:40:07 -04:00
parent 4c7da11331
commit facc54f60b

View File

@ -144,7 +144,7 @@ class Response:
altered = raw
comment = ""
if altered.startswith("HTTP response ["):
if altered.startswith("HTTP response [") or altered.startswith("HTTP redirect ["):
io = StringIO.StringIO(raw)
first_line = io.readline()
parts = cls.extract_status.search(first_line)