aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/http.py b/src/utils/http.py
index 2f529973..9cfc70a1 100644
--- a/src/utils/http.py
+++ b/src/utils/http.py
@@ -79,6 +79,7 @@ def _find_encoding(soup: bs4.BeautifulSoup) -> typing.Optional[str]:
bs4.Doctype)] or None
if doctype and doctype[0] == "html":
return "utf8"
+ return None
def request(url: str, method: str="GET", get_params: dict={},
post_data: typing.Any=None, headers: dict={},