Typo in utils.http.request, 'response_heders' -> 'response_headers'
This commit is contained in:
parent
5b59740043
commit
2d3bb2b5e8
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ def request(url: str, method: str="GET", get_params: dict={},
|
||||||
|
|
||||||
if soup:
|
if soup:
|
||||||
soup = bs4.BeautifulSoup(response_content, parser)
|
soup = bs4.BeautifulSoup(response_content, parser)
|
||||||
return Response(response.status_code, soup, response_heders)
|
return Response(response.status_code, soup, response_headers)
|
||||||
|
|
||||||
data = response_content.decode(response.encoding or fallback_encoding)
|
data = response_content.decode(response.encoding or fallback_encoding)
|
||||||
if json and data:
|
if json and data:
|
||||||
|
|
Loading…
Reference in a new issue