aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-17 16:12:03 +0100
committerGravatar jesopo2019-09-17 16:12:03 +0100
commit98545a9fb434021629acbd3097dc48f19027675c (patch)
tree173ba7757abd2d56e3e64ebc0c3f5e749dcaf964 /src/utils/http.py
parentadd !myaccount (diff)
signature
only decode content-types in DECODE_CONTENT_TYPES
Diffstat (limited to 'src/utils/http.py')
-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 7f24f4ab..8f8b6dd8 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -184,7 +184,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 SOUP_CONTENT_TYPES):
+ content_type and content_type in DECODE_CONTENT_TYPES):
souped = bs4.BeautifulSoup(response.data, request_obj.parser)
encoding = _find_encoding(souped) or encoding