mirror of
https://github.com/maubot/rss.git
synced 2024-10-01 08:25:36 -04:00
Fix content-encoding header
This commit is contained in:
parent
bcbab52c0c
commit
d3ddebedb5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user