From 98ed9d9242db2e44e92628c29eb6e487590a9cce Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 7 Apr 2024 15:52:07 +0200 Subject: [PATCH] Fix "enableCompression not found" error --- svr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svr.js b/svr.js index f7a35fa..f7ad097 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 && enableCompression) { + if (process.isBun && configJSON.enableCompression) { try { zlib.createBrotliCompress(); } catch (err) {