From 3441c5276a42f3c8ac9f3a813850462a09645579 Mon Sep 17 00:00:00 2001 From: Interchained Date: Mon, 4 Jan 2021 14:23:24 -0500 Subject: [PATCH] Update apiInterfaces.js --- lib/apiInterfaces.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/apiInterfaces.js b/lib/apiInterfaces.js index 7c09310..cc4bcca 100644 --- a/lib/apiInterfaces.js +++ b/lib/apiInterfaces.js @@ -45,7 +45,6 @@ function jsonHttpRequest (host, port, data, callback, path) { req.on('error', function (e) { callback(e, {}); }); - req.end(data); } @@ -64,7 +63,7 @@ function rpc (host, port, method, params, callback) { callback(error, {}); return; } - callback(replyJson.error, replyJson.result) + callback(replyJson.error, replyJson.result); }); }