We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcf64c commit beda4d9Copy full SHA for beda4d9
packages/react-router-dev/vite/node-adapter.ts
@@ -89,7 +89,7 @@ export async function toNodeRequest(res: Response, nodeRes: ServerResponse) {
89
90
// HTTP/2 doesn't support status messages
91
// https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.4
92
- if (nodeRes.req?.httpVersionMajor < 2) {
+ if (!nodeRes.req || nodeRes.req.httpVersionMajor < 2) {
93
nodeRes.statusMessage = res.statusText;
94
}
95
0 commit comments