forked from Ailur/burgernotes-server
Fixed content-length
This commit is contained in:
parent
ba1411eed5
commit
8af123968a
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue