Axios fix the request body
This commit is contained in:
parent
b085e63aa7
commit
522dc3c2cb
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue