mirror of
https://github.com/maubot/rss.git
synced 2025-07-20 22:08:42 -04:00
Fix content-encoding header
This commit is contained in:
parent
bcbab52c0c
commit
d3ddebedb5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue