Skip to content

Commit beda4d9

Browse files
committed
Revert unintended change
1 parent efcf64c commit beda4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router-dev/vite/node-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export async function toNodeRequest(res: Response, nodeRes: ServerResponse) {
8989

9090
// HTTP/2 doesn't support status messages
9191
// https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.4
92-
if (nodeRes.req?.httpVersionMajor < 2) {
92+
if (!nodeRes.req || nodeRes.req.httpVersionMajor < 2) {
9393
nodeRes.statusMessage = res.statusText;
9494
}
9595

0 commit comments

Comments
 (0)