diff options
Diffstat (limited to 'apps/Notes/helpers')
-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 }) }) ) |