From ae3888895068b8ec3c6c864e4c91a0544c61a349 Mon Sep 17 00:00:00 2001 From: Jon Church Date: Tue, 2 Jun 2026 19:15:08 -0400 Subject: [PATCH] chore: remove finalhandler workaround for http2 --- src/server.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/server.ts b/src/server.ts index b7d4bf1..0fedf28 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1568,26 +1568,6 @@ class Server< }, }); - const isHTTP2 = - (this.options.server as ServerConfiguration).type === 'http2'; - - if (isHTTP2) { - // TODO patch for https://github.com/pillarjs/finalhandler/pull/45, need remove then will be resolved - middlewares.push({ - name: 'http2-status-message-patch', - middleware: (_req: Request, res: Response, next: NextFunction) => { - Object.defineProperty(res, 'statusMessage', { - get() { - return ''; - }, - set() {}, - }); - - next(); - }, - }); - } - // compress is placed last and uses unshift so that it will be the first middleware used if (this.options.compress) { middlewares.push({