mirror of
https://github.com/maubot/rss.git
synced 2025-04-27 10:29:10 -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")
|
content = await resp.text(encoding="utf-8")
|
||||||
except:
|
except:
|
||||||
content = str(await resp.read())[2:-1]
|
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
|
@staticmethod
|
||||||
def get_date(entry: Any) -> datetime:
|
def get_date(entry: Any) -> datetime:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user