crawler: make sure to use HTTPMessage
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-11-11 10:21:48 +01:00
parent 7eeb1d696c
commit 1083f3ffbc
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ class HTTPRefreshHandler(BaseHandler):
def parse_headers(text=u'\n\n'):
if sys.version_info[0] >= 3:
# python 3
return message_from_string(text)
return message_from_string(text, _class=HTTPMessage)
else:
# python 2