diff options
author | 2021-09-24 22:51:34 +0200 | |
---|---|---|
committer | 2021-09-24 22:51:34 +0200 | |
commit | aac64c2b068e937f939cdefed7af4f08bcb8b3eb (patch) | |
tree | 03927bc78bd5ec12d421bb209d1bb2502499059c /apps/Notes/helpers/noteActions.js | |
parent | 3f95d1aaf4c6631b1f224fb4329cb855734d317e (diff) | |
download | my_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.js | 4 |
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 }) }) ) |