Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1568,26 +1568,6 @@ class Server<
},
});

const isHTTP2 =
(this.options.server as ServerConfiguration<A, S>).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({
Expand Down
Loading