From f9f46cde0b2fd785554ded14bd3441c81f2119c6 Mon Sep 17 00:00:00 2001 From: Jelle van Snik Date: Sun, 8 Jan 2023 20:26:22 +0100 Subject: [PATCH] make redirection with a body work --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index b9c8acc..0b4b21c 100644 --- a/src/main.js +++ b/src/main.js @@ -50,7 +50,7 @@ async function handleRequest(oRequest, destination, iteration = 0) { } // Fetch the new resource - const oResponse = await fetch(request); + const oResponse = await fetch(request.clone()); // If the server returned a redirect, follow it if (