From 456fccad45072237f8008221b39a1f77e662cb67 Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Mon, 26 Jan 2026 12:26:20 -0500 Subject: [PATCH] feat: enable compression middleware for http/2 --- lib/Server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Server.js b/lib/Server.js index 7b6cdb5a95..bbfe8aa29d 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -1967,7 +1967,7 @@ class Server { } // compress is placed last and uses unshift so that it will be the first middleware used - if (this.options.compress && !isHTTP2) { + if (this.options.compress) { const compression = require("compression"); middlewares.push({ name: "compression", middleware: compression() });