From bf7570055e3e3e106bc0f535d03f6e361834bae7 Mon Sep 17 00:00:00 2001 From: Hugo H Date: Fri, 26 Dec 2025 19:36:42 +0000 Subject: [PATCH] Change to actual path, so 301 redirect doesnt occur and browser wont change method --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2172331..3dc198b 100644 --- a/index.html +++ b/index.html @@ -604,7 +604,7 @@ try { const code = codeEditor.getValue(); - const response = await fetch('/codestorage', { + const response = await fetch('/codestorage/default.php', { method: 'POST', headers: { 'Content-Type': 'text/plain' @@ -681,7 +681,7 @@ if (id) { try { - const response = await fetch(`/codestorage?id=${id}`); + const response = await fetch(`/codestorage/default.php?id=${id}`); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`);