Skip to content

Commit

Permalink
Revert change of cloning response as bug was actually in prerender.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Steiner committed Jan 24, 2022
1 parent 7e20b4e commit 5e5f30b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/kit/src/runtime/server/page/load_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ export async function load_node({
const proxy = new Proxy(response, {
get(response, key, _receiver) {
async function text() {
const cloned_response = response.clone();
const body = await cloned_response.text();
const body = await response.text();

/** @type {import('types/helper').ResponseHeaders} */
const headers = {};
Expand Down

0 comments on commit 5e5f30b

Please sign in to comment.