diff options
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; |