diff --git a/server/utils/fileUtils.js b/server/utils/fileUtils.js index db552062..e62f12a5 100644 --- a/server/utils/fileUtils.js +++ b/server/utils/fileUtils.js @@ -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