Добавлены таймауты

This commit is contained in:
Book Pauk
2022-08-04 23:53:46 +07:00
parent c9fa90d07c
commit 0e29546fc5

View File

@@ -12,7 +12,8 @@ class FileDownloader {
const options = {
headers: {
'user-agent': userAgent
'user-agent': userAgent,
timeout: 300*1000,
},
responseType: 'stream',
};
@@ -67,7 +68,8 @@ class FileDownloader {
async head(url) {
const options = {
headers: {
'user-agent': userAgent
'user-agent': userAgent,
timeout: 10*1000,
},
};