Fixed content-length

This commit is contained in:
Tracker-Friendly 2024-02-27 17:36:42 +00:00
parent ba1411eed5
commit 8af123968a
3 changed files with 14 additions and 14 deletions

View File

@ -118,7 +118,7 @@ signupButton.addEventListener("click", (event) => {
newpass: "null" newpass: "null"
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -142,7 +142,7 @@ signupButton.addEventListener("click", (event) => {
newpass: await hashpass(password) newpass: await hashpass(password)
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)

View File

@ -203,7 +203,7 @@ function updateUserInfo() {
secretKey: secretkey secretKey: secretkey
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -250,7 +250,7 @@ deleteMyAccountButton.addEventListener("click", (event) => {
secretKey: secretkey secretKey: secretkey
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -273,7 +273,7 @@ sessionManagerButton.addEventListener("click", (event) => {
secretKey: secretkey secretKey: secretkey
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -314,7 +314,7 @@ sessionManagerButton.addEventListener("click", (event) => {
sessionId: responseData[i]["id"] sessionId: responseData[i]["id"]
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -365,7 +365,7 @@ function selectNote(nameithink) {
noteId: nameithink, noteId: nameithink,
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.catch((error) => { .catch((error) => {
@ -404,7 +404,7 @@ function selectNote(nameithink) {
content: encryptedText, content: encryptedText,
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -431,7 +431,7 @@ function updateNotes() {
secretKey: secretkey secretKey: secretkey
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -466,7 +466,7 @@ function updateNotes() {
noteId: responseData[i]["id"] noteId: responseData[i]["id"]
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -506,7 +506,7 @@ newNote.addEventListener("click", (event) => {
noteName: encryptedName, noteName: encryptedName,
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.catch((error) => { .catch((error) => {
@ -541,7 +541,7 @@ function exportNotes() {
secretKey: secretkey secretKey: secretkey
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)
@ -601,7 +601,7 @@ removeBox.addEventListener("click", (event) => {
noteId: selectedNote noteId: selectedNote
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)

View File

@ -68,7 +68,7 @@ signupButton.addEventListener("click", (event) => {
password: await hashpass(password) password: await hashpass(password)
}), }),
headers: { headers: {
"Content-type": "application/json; charset=UTF-8" "Content-Type": "application/json; charset=UTF-8"
} }
}) })
.then((response) => response) .then((response) => response)