We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a309970 commit 71b70fbCopy full SHA for 71b70fb
1 file changed
src/server.ts
@@ -1568,26 +1568,6 @@ class Server<
1568
},
1569
});
1570
1571
- const isHTTP2 =
1572
- (this.options.server as ServerConfiguration<A, S>).type === 'http2';
1573
-
1574
- if (isHTTP2) {
1575
- // TODO patch for https://github.com/pillarjs/finalhandler/pull/45, need remove then will be resolved
1576
- middlewares.push({
1577
- name: 'http2-status-message-patch',
1578
- middleware: (_req: Request, res: Response, next: NextFunction) => {
1579
- Object.defineProperty(res, 'statusMessage', {
1580
- get() {
1581
- return '';
1582
- },
1583
- set() {},
1584
- });
1585
1586
- next();
1587
1588
1589
- }
1590
1591
// compress is placed last and uses unshift so that it will be the first middleware used
1592
if (this.options.compress) {
1593
middlewares.push({
0 commit comments