Set correct content type to json

This commit is contained in:
2026-07-12 16:49:42 +02:00
parent 3629a07e1b
commit 63a21db78f
+2 -2
View File
@@ -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 }),
});