diff options
author | 2021-09-30 22:48:13 +0200 | |
---|---|---|
committer | 2021-10-01 00:53:11 +0200 | |
commit | 79bdb88a5fc099b5871a83d18eadf9b0448b41d1 (patch) | |
tree | d0a8e48dda7649205e08d17c2fa0de938e27a674 /apps/Notes/helpers/import.js | |
parent | cf1fbb69d7cdb67219be187fc38feea5a6325f45 (diff) | |
download | my_apps-79bdb88a5fc099b5871a83d18eadf9b0448b41d1.tar.gz my_apps-79bdb88a5fc099b5871a83d18eadf9b0448b41d1.tar.bz2 my_apps-79bdb88a5fc099b5871a83d18eadf9b0448b41d1.zip |
added favicons & notes route for phone
Diffstat (limited to 'apps/Notes/helpers/import.js')
-rw-r--r-- | apps/Notes/helpers/import.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/Notes/helpers/import.js b/apps/Notes/helpers/import.js index bbdceaa..01ad00e 100644 --- a/apps/Notes/helpers/import.js +++ b/apps/Notes/helpers/import.js @@ -24,7 +24,7 @@ export const handleImport = async (e, files, mutateNotes, setDone) => { try { const notes = await fetchJson('/api/notes', { method: 'POST', - headers: { 'Content-Type': 'application/json' }, + headers: { 'Content-Type': 'plain/text; charset=utf-8' }, body: JSON.stringify({ title, content }) }) if (i === files.length - 1) await mutateNotes(notes) |