Merge pull request #2825 from omnivore-app/fix/subscribe-api-406

fix 406 not acceptable error from subscribing an rss feed: https://feed.infoq.com/
This commit is contained in:
Hongbo Wu 2023-10-02 12:38:43 +08:00 committed by GitHub
commit 4b1b7f34b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,8 @@ const parser = new Parser({
// some rss feeds require user agent
'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',
},
})