mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-08 00:08:14 +01:00
Merge pull request #3043 from dbrain/fix-feedurl-copy-paste
Fix ssrfFilter url
This commit is contained in:
commit
065aae9a7e
@ -256,8 +256,8 @@ module.exports.downloadFile = (url, filepath, contentTypeFilter = null) => {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
responseType: 'stream',
|
responseType: 'stream',
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl),
|
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url),
|
||||||
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(feedUrl)
|
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url)
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
// Validate content type
|
// Validate content type
|
||||||
|
Loading…
Reference in New Issue
Block a user