Send raw JSON.

This commit is contained in:
Mike Cao 2020-07-18 03:44:54 -07:00
parent 631d124a61
commit bb04015b46
3 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@ function post(url, params) {
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(params),
body: params,
}).then(res => res.json());
}