mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-31 16:24:45 +02:00
Update:30s timeout for file downloading axios request #1050
This commit is contained in:
parent
affcc03c61
commit
bec599f325
1 changed files with 2 additions and 1 deletions
|
@ -168,7 +168,8 @@ module.exports.downloadFile = async (url, filepath) => {
|
|||
const response = await axios({
|
||||
url,
|
||||
method: 'GET',
|
||||
responseType: 'stream'
|
||||
responseType: 'stream',
|
||||
timeout: 30000
|
||||
})
|
||||
response.data.pipe(writer)
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue