Skip to content

Commit

Permalink
Force node to send string
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Nov 5, 2022
1 parent e2c1549 commit ddf7ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ app.get('/:rpc', async function(req, res) {
});

const { status, response } = await makeRpc(req.params["rpc"], ...params);
res.status(status).send(response);
res.status(status).send(JSON.parse(response) + "");
} else {
const forbiddenStatus = 403;
res.status(forbiddenStatus).send("Invalid RPC");
Expand Down

0 comments on commit ddf7ecf

Please sign in to comment.