Skip to content

Commit 48a0122

Browse files
Update packages/react-router-dev/vite/node-adapter.ts
adds link to RFC info on http/2 status messages Co-authored-by: Matt Brophy <[email protected]>
1 parent 50589fd commit 48a0122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export function fromNodeRequest(
8787
export async function toNodeRequest(res: Response, nodeRes: ServerResponse) {
8888
nodeRes.statusCode = res.status;
8989

90-
// HTTP/2 doesn't support status messages (RFC7540 8.1.2.4)
90+
// HTTP/2 doesn't support status messages
91+
// https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.4
9192
if (!nodeRes.req || nodeRes.req.httpVersionMajor < 2) {
9293
nodeRes.statusMessage = res.statusText;
9394
}

0 commit comments

Comments
 (0)