From 5ac3183ec1ff3a262da7b9d78f06d1f2912f1b44 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 7 Sep 2019 14:04:59 -0400 Subject: [PATCH] [F] Fix body isn't in json format problem --- src/utils/http-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http-utils.ts b/src/utils/http-utils.ts index ac00b72..c4bc537 100644 --- a/src/utils/http-utils.ts +++ b/src/utils/http-utils.ts @@ -18,7 +18,7 @@ export class HttpUtils return new Promise((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 =>