From 63a21db78f282c2269d48b02f6a9508a9f7e5f86 Mon Sep 17 00:00:00 2001 From: Francisco Penedo Alvarez Date: Sun, 12 Jul 2026 16:49:42 +0200 Subject: [PATCH] Set correct content type to json --- ao3-subscribe.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ao3-subscribe.user.js b/ao3-subscribe.user.js index 182169f..0a80bba 100644 --- a/ao3-subscribe.user.js +++ b/ao3-subscribe.user.js @@ -95,7 +95,7 @@ async function loginToTinyTinyRSS() { const loginResponse = await fetch("https://news.nas.franpenedo.com/api/", { method: "POST", headers: { - "Content-Type": "application/x-www-form-urlencoded", + "Content-Type": "application/json", }, body: JSON.stringify({ op: "login", user: creds.usr, password: creds.pword }), }); @@ -114,7 +114,7 @@ async function subscribeToFeed(feedURL, sessionID) { const subscribeResponse = await fetch("https://news.nas.franpenedo.com/api/", { method: "POST", headers: { - "Content-Type": "application/x-www-form-urlencoded", + "Content-Type": "application/json", }, body: JSON.stringify({ op: "subscribeToFeed", feed_url: feedURL, category_id: 11, sid: sessionID }), });