From c0f301faf13c9b3fd6bd2e74828f0a961574f943 Mon Sep 17 00:00:00 2001 From: cpayne Date: Mon, 8 Dec 2025 16:02:01 -0500 Subject: [PATCH] Change POST from Bananas to GET --- samy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samy.js b/samy.js index f360da0..cac47c3 100644 --- a/samy.js +++ b/samy.js @@ -234,7 +234,7 @@ async function fetchSites() { try { const resp = await fetch("/getpw", { - method: "POST", + method: "GET", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ password: pwd }), }); @@ -265,7 +265,7 @@ async function fetchSites() { // ======================================================================= let allPrinters = []; -// POST /getprinters with password from Devices tab +// GET /getprinters with password from Devices tab async function fetchPrinters() { const pwdInput = document.getElementById("PrinterPassword"); const pwd = pwdInput?.value; @@ -290,7 +290,7 @@ async function fetchPrinters() { try { const resp = await fetch("/getprinters", { - method: "POST", + method: "GET", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ password: pwd }), });