1
0
Fork 0
forked from svrjs/svrjs

Make configJSON.enableCompression conditions consistent

This commit is contained in:
Dorian Niemiec 2024-04-07 15:52:51 +02:00
parent 98ed9d9242
commit 8f67b72bc5

2
svr.js
View file

@ -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) {