Pass a dict
to utils.CaseInsensitiveDict, not a MutableMapping
This commit is contained in:
parent
d373edfaae
commit
5b59740043
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue