Fix content-encoding header

This commit is contained in:
Tulir Asokan 2019-10-16 12:55:06 +03:00
parent bcbab52c0c
commit d3ddebedb5

View File

@ -128,7 +128,7 @@ class RSSBot(Plugin):
content = await resp.text(encoding="utf-8")
except:
content = str(await resp.read())[2:-1]
return content, {"Content-Location": url, **resp.headers}
return content, {"Content-Location": url, **resp.headers, "Content-Encoding": "identity"}
@staticmethod
def get_date(entry: Any) -> datetime: