Skip to content

Commit e15116a

Browse files
committed
fix e2e test
1 parent a9bed75 commit e15116a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/dom/ssr/single-fetch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ async function fetchAndDecode(
552552
}
553553

554554
// Handle non-RR redirects (i.e., from express middleware via `dataRedirect`)
555-
if (res.status === 204) {
555+
if (res.status === 204 && res.headers.has("X-Remix-Redirect")) {
556556
let data: SingleFetchRedirectResult = {
557557
redirect: res.headers.get("X-Remix-Redirect")!,
558558
status: Number(res.headers.get("X-Remix-Status") || "302"),

0 commit comments

Comments
 (0)