Fixed http body
This commit is contained in:
parent
7626c20f08
commit
af887a0bfb
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/utils",
|
"name": "@ztimson/utils",
|
||||||
"version": "0.14.3",
|
"version": "0.14.4",
|
||||||
"description": "Utility library",
|
"description": "Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -70,7 +70,7 @@ export class Http {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if(typeof opts.body == 'object' && opts.body != null && headers['Content-Type'] == 'application/json')
|
if(typeof opts.body == 'object' && opts.body != null && headers['Content-Type'] == 'application/json')
|
||||||
opts.body = JSON.stringify(opts.json);
|
opts.body = JSON.stringify(opts.body);
|
||||||
|
|
||||||
// Send request
|
// Send request
|
||||||
return new PromiseProgress((res, rej, prog) => {
|
return new PromiseProgress((res, rej, prog) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user