aboutsummaryrefslogtreecommitdiffstats
path: root/helpers
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2022-05-08 13:05:58 +0100
committerGravatar piotrruss <mail@pruss.it> 2022-05-08 13:05:58 +0100
commit5086e947a995004f8eaf79668493c57051550545 (patch)
tree23f1881065ef8b533d10ac69421d2d54e605f334 /helpers
parentef8d5215e8115ac47d058a667a93b27bc0887a7f (diff)
downloadmy_apps-5086e947a995004f8eaf79668493c57051550545.tar.gz
my_apps-5086e947a995004f8eaf79668493c57051550545.tar.bz2
my_apps-5086e947a995004f8eaf79668493c57051550545.zip
send req as plain text
Diffstat (limited to 'helpers')
-rw-r--r--helpers/submitForm.js2
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)
})
)