From 3b37890635c867c477811c493d4b6cec6d626fb0 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sun, 21 Jul 2024 20:08:14 -0700 Subject: [PATCH] web feed poll: accept text/xml as well as application/xml https://bsky.app/profile/kerim.oxus.net/post/3kxtd6hvpt62s https://stackoverflow.com/questions/4832357/whats-the-difference-between-text-xml-vs-application-xml-for-webservice-respons --- web.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web.py b/web.py index 39cbdbe2..4633069b 100644 --- a/web.py +++ b/web.py @@ -47,7 +47,9 @@ FEED_TYPES = { atom.CONTENT_TYPE.split(';')[0]: 'atom', rss.CONTENT_TYPE.split(';')[0]: 'rss', + # https://stackoverflow.com/questions/4832357/whats-the-difference-between-text-xml-vs-application-xml-for-webservice-respons 'application/xml': 'xml', + 'text/xml': 'xml', } MIN_FEED_POLL_PERIOD = timedelta(hours=2) MAX_FEED_POLL_PERIOD = timedelta(weeks=1)