We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c64fcb2 commit 61e7a62Copy full SHA for 61e7a62
1 file changed
src/server.ts
@@ -1668,9 +1668,8 @@ class Server<
1668
}
1669
1670
// compress is placed last and uses unshift so that it will be the first middleware used
1671
- if (this.options.compress && !isHTTP2) {
+ if (this.options.compress) {
1672
const compression = require('compression');
1673
-
1674
middlewares.push({ name: 'compression', middleware: compression() });
1675
1676
0 commit comments