Поправлен баг

This commit is contained in:
Book Pauk
2022-07-15 23:53:54 +07:00
parent 7e935951d7
commit 97fc902cdb

View File

@@ -23,7 +23,7 @@ class FileDownloader {
estSize = res.headers['content-length'];
}
if (estSize > this.limitDownloadSize) {
if (this.limitDownloadSize && estSize > this.limitDownloadSize) {
throw new Error('Файл слишком большой');
}