aboutsummaryrefslogtreecommitdiffstats
path: root/apps/Notes/helpers/noteActions.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-09-24 22:51:34 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-09-24 22:51:34 +0200
commitaac64c2b068e937f939cdefed7af4f08bcb8b3eb (patch)
tree03927bc78bd5ec12d421bb209d1bb2502499059c /apps/Notes/helpers/noteActions.js
parent3f95d1aaf4c6631b1f224fb4329cb855734d317e (diff)
downloadmy_apps-aac64c2b068e937f939cdefed7af4f08bcb8b3eb.tar.gz
my_apps-aac64c2b068e937f939cdefed7af4f08bcb8b3eb.tar.bz2
my_apps-aac64c2b068e937f939cdefed7af4f08bcb8b3eb.zip
send notes as plain/text
Diffstat (limited to 'apps/Notes/helpers/noteActions.js')
-rw-r--r--apps/Notes/helpers/noteActions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/Notes/helpers/noteActions.js b/apps/Notes/helpers/noteActions.js
index d934229..99cafbd 100644
--- a/apps/Notes/helpers/noteActions.js
+++ b/apps/Notes/helpers/noteActions.js
@@ -25,7 +25,7 @@ export const addNote = async (e, mutateNotes, setAction, t, setPopup) => {
mutateNotes(
await fetchJson('/api/notes', {
method: 'POST',
- headers: { 'Content-Type': 'application/json' },
+ headers: { 'Content-Type': 'plain/text; charset=utf-8' },
body: JSON.stringify({ title, content })
})
)
@@ -52,7 +52,7 @@ export const updateNote = async (e, note, mutateNotes, setAction, t, setPopup) =
mutateNotes(
await fetchJson(`/api/notes/${_id}`, {
method: 'PUT',
- headers: { 'Content-Type': 'application/json' },
+ headers: { 'Content-Type': 'plain/text; charset=utf-8' },
body: JSON.stringify({ title, noteId, content })
})
)