@less-is-more/less-js 1.4.32-2 → 1.4.32-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/router.js +3 -3
package/package.json
CHANGED
package/src/router.js
CHANGED
|
@@ -213,13 +213,13 @@ module.exports = class Router {
|
|
|
213
213
|
req.headers["Accept-Encoding"] || req.headers["accept-encoding"];
|
|
214
214
|
if (acceptEncoding) {
|
|
215
215
|
if (acceptEncoding.includes("br")) {
|
|
216
|
-
content = zlib.brotliCompressSync(content)
|
|
216
|
+
content = zlib.brotliCompressSync(content);
|
|
217
217
|
res.setHeader("Content-Encoding", "br");
|
|
218
218
|
} else if (acceptEncoding.includes("gzip")) {
|
|
219
|
-
content = zlib.gzipSync(content)
|
|
219
|
+
content = zlib.gzipSync(content);
|
|
220
220
|
res.setHeader("Content-Encoding", "gzip");
|
|
221
221
|
} else if (acceptEncoding.includes("deflate")) {
|
|
222
|
-
content = zlib.deflateSync(content)
|
|
222
|
+
content = zlib.deflateSync(content);
|
|
223
223
|
res.setHeader("Content-Encoding", "deflate");
|
|
224
224
|
}
|
|
225
225
|
}
|