From 5b59740043b39dcfa0a5e90bb85ce9da29cd1248 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 11 Dec 2018 22:30:57 +0000 Subject: Pass a `dict` to utils.CaseInsensitiveDict, not a MutableMapping --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/http.py') diff --git a/src/utils/http.py b/src/utils/http.py index c19f8c0f..6fbb64de 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -58,7 +58,7 @@ def request(url: str, method: str="GET", get_params: dict={}, finally: signal.signal(signal.SIGALRM, signal.SIG_IGN) - response_headers = utils.CaseInsensitiveDict(response.headers) + response_headers = utils.CaseInsensitiveDict(dict(response.headers)) if soup: soup = bs4.BeautifulSoup(response_content, parser) -- cgit v1.3.1-10-gc9f91