From 44886ae79ba71c613e096b77e08c165f2afe8f72 Mon Sep 17 00:00:00 2001 From: akvlad Date: Tue, 3 Sep 2024 16:02:06 +0300 Subject: [PATCH] uncomment pako --- qryn_node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qryn_node.js b/qryn_node.js index 6a10b4e4..38e48349 100755 --- a/qryn_node.js +++ b/qryn_node.js @@ -124,7 +124,7 @@ let fastify = require('fastify')({ done() })) await fastify.register(require('@fastify/compress'), { - encodings: ['gzip']/*, + encodings: ['gzip'], zlib: { createGzip: () => { const deflator = new pako.Deflate({ gzip: true }) @@ -152,7 +152,7 @@ let fastify = require('fastify')({ } return res } - }*/ + } }) await fastify.register(require('@fastify/url-data')) await fastify.register(require('@fastify/websocket'))