on master help sign in
Axios fix the request body
522dc3cFreezeboy
servant-js/src/Servant/JS/Axios.hs+1−1
@@ -51,7 +51,7 @@ generateAxiosJSWith opts req = "\n" <>
51
51
52 dataBody =
52 dataBody =
53 if req ^. reqBody
53 if req ^. reqBody
54− then " , data: JSON.stringify(body)\n" <>
54+ then " , data: body\n" <>
55 " , responseType: 'json'\n"
55 " , responseType: 'json'\n"
56 else ""
56 else ""
57
57