1
0
Fork 0
forked from svrjs/svrjs

Fix all compression algorithms dependent on Brotli

This commit is contained in:
Dorian Niemiec 2024-04-29 20:08:33 +02:00
parent 934f4dd475
commit b51ac3e171

4
svr.js
View file

@ -3720,8 +3720,8 @@ if (!cluster.isPrimary) {
}
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 useGzip = (ext != "gz" && filelen > 256 && zlib.createBrotliCompress && acceptEncoding.match(/\bgzip\b/));
var useDeflate = (ext != "zip" && filelen > 256 && acceptEncoding.match(/\bdeflate\b/));
var useGzip = (ext != "gz" && filelen > 256 && acceptEncoding.match(/\bgzip\b/));
var isCompressable = true;
try {