diff --git a/servant-js/src/Servant/JS/Axios.hs b/servant-js/src/Servant/JS/Axios.hs index db97cbcf..5cac7253 100644 --- a/servant-js/src/Servant/JS/Axios.hs +++ b/servant-js/src/Servant/JS/Axios.hs @@ -51,7 +51,7 @@ generateAxiosJSWith opts req = "\n" <> dataBody = if req ^. reqBody - then " , data: JSON.stringify(body)\n" <> + then " , data: body\n" <> " , responseType: 'json'\n" else ""