Skip to content

Commit

Permalink
web feed poll: accept text/xml as well as application/xml
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jul 22, 2024
1 parent 2a63b1c commit 3b37890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3b37890

Please sign in to comment.