diff options
author | 2022-05-08 13:05:58 +0100 | |
---|---|---|
committer | 2022-05-08 13:05:58 +0100 | |
commit | 5086e947a995004f8eaf79668493c57051550545 (patch) | |
tree | 23f1881065ef8b533d10ac69421d2d54e605f334 /helpers/submitForm.js | |
parent | ef8d5215e8115ac47d058a667a93b27bc0887a7f (diff) | |
download | my_apps-5086e947a995004f8eaf79668493c57051550545.tar.gz my_apps-5086e947a995004f8eaf79668493c57051550545.tar.bz2 my_apps-5086e947a995004f8eaf79668493c57051550545.zip |
send req as plain text
Diffstat (limited to 'helpers/submitForm.js')
-rw-r--r-- | helpers/submitForm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/submitForm.js b/helpers/submitForm.js index d67a7dc..c52494f 100644 --- a/helpers/submitForm.js +++ b/helpers/submitForm.js @@ -32,7 +32,7 @@ const submitForm = async (e, url, mutateUser, setErrorMsg) => { mutateUser( await fetchJson(url, { method: 'POST', - headers: { 'Content-Type': 'application/json' }, + headers: { 'Content-Type': 'plain/text' }, body: JSON.stringify(body) }) ) |