From 5086e947a995004f8eaf79668493c57051550545 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sun, 8 May 2022 13:05:58 +0100 Subject: send req as plain text --- helpers/submitForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpers/submitForm.js') 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) }) ) -- cgit v1.2.3