Pass a dict to utils.CaseInsensitiveDict, not a MutableMapping

This commit is contained in:
jesopo 2018-12-11 22:30:57 +00:00
parent d373edfaae
commit 5b59740043

View file

@ -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)