aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2018-12-11 22:30:57 +0000
committerGravatar jesopo2018-12-11 22:30:57 +0000
commit5b59740043b39dcfa0a5e90bb85ce9da29cd1248 (patch)
tree0a4d192f8afb8b3dbdec02f2f6eb47607e578c95 /src/utils
parentAdd missing `utils` import in utils.http (diff)
signature
Pass a `dict` to utils.CaseInsensitiveDict, not a MutableMapping
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/http.py2
1 files changed, 1 insertions, 1 deletions
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)