aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-20 13:38:00 +0100
committerGravatar jesopo2019-09-20 13:38:00 +0100
commit72649a90c283dd81430837df480149f42ee8b5bc (patch)
tree1639b482c466c505f880efb6de50b3d435b3a437 /src/utils
parent'path' is now 'args' (diff)
signature
only BeautifulSoup for finding encoding when it's a html-ish type
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 e9cf2ede..d260051b 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -188,7 +188,7 @@ def _request(request_obj: Request) -> Response:
encoding = response.encoding or request_obj.fallback_encoding
if (request_obj.detect_encoding and
- content_type and content_type in DECODE_CONTENT_TYPES):
+ content_type and content_type in SOUP_CONTENT_TYPES):
souped = bs4.BeautifulSoup(response.data, request_obj.parser)
encoding = _find_encoding(souped) or encoding