]> git.amazingca.dev Git - autumn/todo/commitdiff
Move to push with body instead of headers
authorAmazingca <autumn@amazingca.dev>
Fri, 3 Jul 2026 04:25:05 +0000 (22:25 -0600)
committerAmazingca <autumn@amazingca.dev>
Fri, 3 Jul 2026 04:25:05 +0000 (22:25 -0600)
app/settings.js

index 8f3b8f14df3819e76b2a970213753307bcc95808..cca8ac45a33ff87115034e5e121cf66f6ed1429f 100644 (file)
@@ -249,13 +249,13 @@ pushToServer.addEventListener("click", async () => {
   const req = await fetch(server.address + "/push", {
     method: "POST",
     headers: {
-      "Authorization": `Basic ${server.passphrase}`,
-      "Data": JSON.stringify({
-        todos: todos,
-        archived: archived,
-        theme: theme
-      })
-    }
+      "Authorization": `Basic ${server.passphrase}`
+    },
+    "body": JSON.stringify({
+      todos: todos,
+      archived: archived,
+      theme: theme
+    })
   });
 
   if (req.status == 200) {