[F] Fix body isn't in json format problem

This commit is contained in:
Hykilpikonna
2019-09-07 14:04:59 -04:00
parent a7384753c8
commit 5ac3183ec1
+1 -1
View File
@@ -18,7 +18,7 @@ export class HttpUtils
return new Promise<any>((resolve, reject) =>
{
// Fetch request
fetch(`${Constants.API_URL}${node}`, {method: 'POST', body: body}).then(res =>
fetch(`${Constants.API_URL}${node}`, {method: 'POST', body: JSON.stringify(body)}).then(res =>
{
// Get response body text
res.text().then(text =>