forked from svrjs/svrjs
Fix all compression algorithms dependent on Brotli
This commit is contained in:
parent
934f4dd475
commit
b51ac3e171
1 changed files with 2 additions and 2 deletions
4
svr.js
4
svr.js
|
@ -3720,8 +3720,8 @@ if (!cluster.isPrimary) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var useBrotli = (ext != "br" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bbr\b/));
|
var useBrotli = (ext != "br" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bbr\b/));
|
||||||
var useDeflate = (ext != "zip" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bdeflate\b/));
|
var useDeflate = (ext != "zip" && filelen > 256 && acceptEncoding.match(/\bdeflate\b/));
|
||||||
var useGzip = (ext != "gz" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bgzip\b/));
|
var useGzip = (ext != "gz" && filelen > 256 && acceptEncoding.match(/\bgzip\b/));
|
||||||
|
|
||||||
var isCompressable = true;
|
var isCompressable = true;
|
||||||
try {
|
try {
|
||||||
|
|
Reference in a new issue