From 8f67b72bc53cce3ed05fd4674dbeaa8fa53c39c2 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 7 Apr 2024 15:52:51 +0200 Subject: [PATCH] Make configJSON.enableCompression conditions consistent --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index f7ad097..10a47d2 100644 --- a/svr.js +++ b/svr.js @@ -3715,7 +3715,7 @@ if (!cluster.isPrimary) { var hdhds = getCustomHeaders(); var brNotImplementedBun = false; // Bun 1.1 has definition for zlib.createBrotliCompress, but throws an error while invoking the function. - if (process.isBun && configJSON.enableCompression) { + if (process.isBun && configJSON.enableCompression === true) { try { zlib.createBrotliCompress(); } catch (err) {