diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 05:24:17 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 05:24:17 +0800 |
commit | 45134de7401b58f0118deb16bf0644495715fbdb (patch) | |
tree | ebe0ba3fe2de88ae74ca3fa009b3b4a0d7c64623 /lib/httpsync.js | |
parent | f3ce1f07c42924a116e9c215ea95fb0a2b0217f0 (diff) | |
download | dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.gz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.bz2 dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.lz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.xz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.zst dexon-45134de7401b58f0118deb16bf0644495715fbdb.zip |
jsonrpc.js file && batch polling
Diffstat (limited to 'lib/httpsync.js')
-rw-r--r-- | lib/httpsync.js | 3 |
1 files changed, 2 insertions, 1 deletions
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; |