Update User-Agent strings

This commit is contained in:
advplyr 2024-06-24 17:14:20 -05:00
parent 2843a3b6d7
commit 2673742d8d
3 changed files with 26 additions and 24 deletions

View file

@ -255,6 +255,9 @@ module.exports.downloadFile = (url, filepath, contentTypeFilter = null) => {
url,
method: 'GET',
responseType: 'stream',
headers: {
'User-Agent': 'audiobookshelf (+https://audiobookshelf.org)'
},
timeout: 30000,
httpAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url),
httpsAgent: global.DisableSsrfRequestFilter ? null : ssrfFilter(url)