Merge pull request #3941 from Vynce/accept-encoding

Add `Accept-Encoding` header to `getPodcastFeed()`
This commit is contained in:
advplyr 2025-02-06 17:01:31 -06:00 committed by GitHub
commit e93bb5cb07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,6 +311,7 @@ module.exports.getPodcastFeed = (feedUrl, excludeEpisodeMetadata = false) => {
responseType: 'arraybuffer',
headers: {
Accept: 'application/rss+xml, application/xhtml+xml, application/xml, */*;q=0.8',
'Accept-Encoding': 'gzip, compress, deflate',
'User-Agent': userAgent
},
httpAgent: global.DisableSsrfRequestFilter?.(feedUrl) ? null : ssrfFilter(feedUrl),