Some servers look for Accept: text/html for RSS

This commit is contained in:
Jackson Harper
2023-11-10 21:01:57 +08:00
parent 971b234a44
commit 17fdbcca2c

View File

@ -40,7 +40,7 @@ export const fetchAndChecksum = async (url: string) => {
'User-Agent':
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
Accept:
'application/rss+xml, application/rdf+xml;q=0.8, application/atom+xml;q=0.6, application/xml;q=0.4, text/xml;q=0.4',
'application/rss+xml, application/rdf+xml;q=0.8, application/atom+xml;q=0.6, application/xml;q=0.4, text/xml, text/html;q=0.4',
},
})