Axios fix the request body

This commit is contained in:
Freezeboy 2015-07-28 11:33:36 +02:00
parent b085e63aa7
commit 522dc3c2cb

View File

@ -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 ""