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 hdhds = getCustomHeaders();
|
||||||
var brNotImplementedBun = false;
|
var brNotImplementedBun = false;
|
||||||
// Bun 1.1 has definition for zlib.createBrotliCompress, but throws an error while invoking the function.
|
// 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 {
|
try {
|
||||||
zlib.createBrotliCompress();
|
zlib.createBrotliCompress();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Reference in a new issue