mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Add user agent string to feed requests
This commit is contained in:
parent
09bcc1191f
commit
2843a3b6d7
@ -233,7 +233,10 @@ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
timeout: 12000,
|
timeout: 12000,
|
||||||
responseType: 'arraybuffer',
|
responseType: 'arraybuffer',
|
||||||
headers: { Accept: 'application/rss+xml, application/xhtml+xml, application/xml, */*;q=0.8' },
|
headers: {
|
||||||
|
Accept: 'application/rss+xml, application/xhtml+xml, application/xml, */*;q=0.8',
|
||||||
|
'User-Agent': 'audiobookshelf (+https://github.com/advplyr/audiobookshelf; like iTMS)'
|
||||||
|
},
|
||||||
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl),
|
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl),
|
||||||
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl)
|
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user