Skip to content

Commit

Permalink
Merge pull request #7 from fncap/master
Browse files Browse the repository at this point in the history
fix bad 'body' format passed to json_rpc call
  • Loading branch information
ludufre authored Aug 18, 2022
2 parents a96f81d + b46b5bf commit ec6e300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/engine/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ApiService {
headers: hds
};
if (!!body) {
init['body'] = body;
init['body'] = typeof body === 'object' ? JSON.stringify(body) : body;
}

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit ec6e300

Please sign in to comment.