Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit c336fd3

Browse files
committed
Add Content-Type header to RPC responses
1 parent ea54290 commit c336fd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clients/nodejs/modules/JsonRpcServer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ class JsonRpcServer {
5555
res.end('Nimiq JSON-RPC Server\n');
5656
} else if (req.method === 'POST') {
5757
if (JsonRpcServer._authenticate(req, res, config.username, config.password)) {
58+
res.setHeader('Content-Type', 'application/json');
5859
this._onRequest(req, res);
5960
}
6061
} else {

0 commit comments

Comments
 (0)