From 1083f3ffbc4ed775d74a83c95e73dcb3a170f17d Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 11 Nov 2021 10:21:48 +0100 Subject: [PATCH] crawler: make sure to use HTTPMessage --- morss/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/crawler.py b/morss/crawler.py index 5b9e38b..991ce3d 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -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