From c336fd33e31494297106e8fd811f374b34cdd778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Tue, 2 Jul 2024 15:54:02 +0200 Subject: [PATCH] Add Content-Type header to RPC responses --- clients/nodejs/modules/JsonRpcServer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/nodejs/modules/JsonRpcServer.js b/clients/nodejs/modules/JsonRpcServer.js index 175e54a15..44296fa8f 100644 --- a/clients/nodejs/modules/JsonRpcServer.js +++ b/clients/nodejs/modules/JsonRpcServer.js @@ -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 {