forked from svrjs/svrjs
Fix "enableCompression not found" error
This commit is contained in:
parent
9576dc6406
commit
98ed9d9242
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 && enableCompression) {
|
||||
if (process.isBun && configJSON.enableCompression) {
|
||||
try {
|
||||
zlib.createBrotliCompress();
|
||||
} catch (err) {
|
||||
|
|
Reference in a new issue