Skip to content

Commit efcf64c

Browse files
committed
Add changeset
1 parent 48a0122 commit efcf64c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/sour-eggs-give.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Fix "Status message is not supported by HTTP/2" error during dev when using HTTPS

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 || nodeRes.req.httpVersionMajor < 2) {
92+
if (nodeRes.req?.httpVersionMajor < 2) {
9393
nodeRes.statusMessage = res.statusText;
9494
}
9595

0 commit comments

Comments
 (0)