From b51ac3e171fb6a5c597f12ef3b5105b12e7a0772 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 29 Apr 2024 20:08:33 +0200 Subject: [PATCH] Fix all compression algorithms dependent on Brotli --- svr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svr.js b/svr.js index 2e11dd0..3b80f5c 100644 --- a/svr.js +++ b/svr.js @@ -3720,8 +3720,8 @@ if (!cluster.isPrimary) { } var useBrotli = (ext != "br" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bbr\b/)); - var useDeflate = (ext != "zip" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bdeflate\b/)); - var useGzip = (ext != "gz" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bgzip\b/)); + var useDeflate = (ext != "zip" && filelen > 256 && acceptEncoding.match(/\bdeflate\b/)); + var useGzip = (ext != "gz" && filelen > 256 && acceptEncoding.match(/\bgzip\b/)); var isCompressable = true; try {