1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-01-08 00:08:14 +01:00

Merge pull request from dbrain/fix-feedurl-copy-paste

Fix ssrfFilter url
This commit is contained in:
advplyr 2024-06-05 08:26:12 -05:00 committed by GitHub
commit 065aae9a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,8 +256,8 @@ module.exports.downloadFile = (url, filepath, contentTypeFilter = null) => {
method: 'GET',
responseType: 'stream',
timeout: 30000,
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl),
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl)
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url),
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url)
})
.then((response) => {
// Validate content type