From 8af123968a521af5ed2688b31f83180eea68d827 Mon Sep 17 00:00:00 2001 From: Tracker-Friendly Date: Tue, 27 Feb 2024 17:36:42 +0000 Subject: [PATCH] Fixed content-length --- static/js/login.js | 4 ++-- static/js/main.js | 22 +++++++++++----------- static/js/signup.js | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/static/js/login.js b/static/js/login.js index 7800374..e20da4c 100644 --- a/static/js/login.js +++ b/static/js/login.js @@ -118,7 +118,7 @@ signupButton.addEventListener("click", (event) => { newpass: "null" }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -142,7 +142,7 @@ signupButton.addEventListener("click", (event) => { newpass: await hashpass(password) }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) diff --git a/static/js/main.js b/static/js/main.js index b2fed72..9e19fc0 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -203,7 +203,7 @@ function updateUserInfo() { secretKey: secretkey }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -250,7 +250,7 @@ deleteMyAccountButton.addEventListener("click", (event) => { secretKey: secretkey }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -273,7 +273,7 @@ sessionManagerButton.addEventListener("click", (event) => { secretKey: secretkey }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -314,7 +314,7 @@ sessionManagerButton.addEventListener("click", (event) => { sessionId: responseData[i]["id"] }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -365,7 +365,7 @@ function selectNote(nameithink) { noteId: nameithink, }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .catch((error) => { @@ -404,7 +404,7 @@ function selectNote(nameithink) { content: encryptedText, }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -431,7 +431,7 @@ function updateNotes() { secretKey: secretkey }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -466,7 +466,7 @@ function updateNotes() { noteId: responseData[i]["id"] }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -506,7 +506,7 @@ newNote.addEventListener("click", (event) => { noteName: encryptedName, }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .catch((error) => { @@ -541,7 +541,7 @@ function exportNotes() { secretKey: secretkey }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) @@ -601,7 +601,7 @@ removeBox.addEventListener("click", (event) => { noteId: selectedNote }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response) diff --git a/static/js/signup.js b/static/js/signup.js index 4566a67..9452651 100644 --- a/static/js/signup.js +++ b/static/js/signup.js @@ -68,7 +68,7 @@ signupButton.addEventListener("click", (event) => { password: await hashpass(password) }), headers: { - "Content-type": "application/json; charset=UTF-8" + "Content-Type": "application/json; charset=UTF-8" } }) .then((response) => response)