Skip to content

Commit

Permalink
Revert "fix: change how request is "cloned" for loaders (remix-run#3218
Browse files Browse the repository at this point in the history
…)"

This reverts commit 8bdd2f8.
  • Loading branch information
repository authored Jul 12, 2022
1 parent 1f92d74 commit 143a0b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
30 changes: 0 additions & 30 deletions packages/remix-server-runtime/__tests__/handler-test.ts

This file was deleted.

5 changes: 1 addition & 4 deletions packages/remix-server-runtime/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,8 @@ async function handleDocumentRequest({
}

let loaderRequest = new Request(request.url, {
...request,
body: null,
headers: request.headers,
method: request.method,
redirect: request.redirect,
signal: request.signal,
});

let routeLoaderResults = await Promise.allSettled(
Expand Down

0 comments on commit 143a0b0

Please sign in to comment.