From 45134de7401b58f0118deb16bf0644495715fbdb Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 3 Feb 2015 22:24:17 +0100 Subject: jsonrpc.js file && batch polling --- lib/httpsync.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/httpsync.js') diff --git a/lib/httpsync.js b/lib/httpsync.js index 478779c4b..06e410ca8 100644 --- a/lib/httpsync.js +++ b/lib/httpsync.js @@ -38,7 +38,8 @@ HttpSyncProvider.prototype.send = function (payload) { request.send(JSON.stringify(payload)); // check request.status - return request.responseText; + var result = request.responseText; + return JSON.parse(result); }; module.exports = HttpSyncProvider; -- cgit v1.2.3