Fixed http body
All checks were successful
Build / Build NPM Project (push) Successful in 22s
Build / Tag Version (push) Successful in 4s

This commit is contained in:
Zakary Timson 2024-07-19 10:05:47 -04:00
parent 7626c20f08
commit af887a0bfb
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.14.3",
"version": "0.14.4",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -70,7 +70,7 @@ export class Http {
});
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
return new PromiseProgress((res, rej, prog) => {