forked from svrjs/svrjs
Make configJSON.enableCompression conditions consistent
This commit is contained in:
parent
98ed9d9242
commit
8f67b72bc5
1 changed files with 1 additions and 1 deletions
2
svr.js
2
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) {
|
||||
|
|
Reference in a new issue