From 97fc902cdbd1c39a678991b5bbc26c312f802207 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Fri, 15 Jul 2022 23:53:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/FileDownloader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/FileDownloader.js b/server/core/FileDownloader.js index 148612d8..0e54e21e 100644 --- a/server/core/FileDownloader.js +++ b/server/core/FileDownloader.js @@ -23,7 +23,7 @@ class FileDownloader { estSize = res.headers['content-length']; } - if (estSize > this.limitDownloadSize) { + if (this.limitDownloadSize && estSize > this.limitDownloadSize) { throw new Error('Файл слишком большой'); }