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 50589fd commit 48a0122Copy full SHA for 48a0122
packages/react-router-dev/vite/node-adapter.ts
@@ -87,7 +87,8 @@ export function fromNodeRequest(
87
export async function toNodeRequest(res: Response, nodeRes: ServerResponse) {
88
nodeRes.statusCode = res.status;
89
90
- // HTTP/2 doesn't support status messages (RFC7540 8.1.2.4)
+ // HTTP/2 doesn't support status messages
91
+ // https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.4
92
if (!nodeRes.req || nodeRes.req.httpVersionMajor < 2) {
93
nodeRes.statusMessage = res.statusText;
94
}
0 commit comments