remove unsupported encoding method

This commit is contained in:
2021-05-16 19:07:07 +08:00
parent 9f9feef2bd
commit 22e5cf30c3

View File

@@ -355,7 +355,7 @@ class RSSParser:
def parse(self, fn: str):
try:
if fn.find('://') > -1:
header = {"Accept-Encoding": "gzip, deflate, br"}
header = {"Accept-Encoding": "gzip, deflate"}
re = requests.get(fn, headers=header)
re.encoding = 'utf8'
if re.status_code == 200: