Skip to content

Commit

Permalink
Add Content-Type header to RPC responses
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Jul 2, 2024
1 parent ea54290 commit c336fd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/nodejs/modules/JsonRpcServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class JsonRpcServer {
res.end('Nimiq JSON-RPC Server\n');
} else if (req.method === 'POST') {
if (JsonRpcServer._authenticate(req, res, config.username, config.password)) {
res.setHeader('Content-Type', 'application/json');
this._onRequest(req, res);
}
} else {
Expand Down

0 comments on commit c336fd3

Please sign in to comment.