Skip to content

Commit

Permalink
Revert "Revert change of cloning response as bug was actually in prer…
Browse files Browse the repository at this point in the history
…ender.js"

This reverts commit 5e5f30b.

Revert being stupid sveltejs#2
  • Loading branch information
Theo-Steiner committed Jan 24, 2022
1 parent e6de8be commit efd3fec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/kit/src/runtime/server/page/load_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ export async function load_node({
const proxy = new Proxy(response, {
get(response, key, _receiver) {
async function text() {
const body = await response.text();
const cloned_response = response.clone();
const body = await cloned_response.text();

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

0 comments on commit efd3fec

Please sign in to comment.