diff options
Diffstat (limited to 'lib/jsonrpc.js')
-rw-r--r-- | lib/jsonrpc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jsonrpc.js b/lib/jsonrpc.js index 63afa3229..b2d6922c0 100644 --- a/lib/jsonrpc.js +++ b/lib/jsonrpc.js @@ -45,7 +45,7 @@ var isValidResponse = function (response) { !response.error && response.jsonrpc === '2.0' && typeof response.id === 'number' && - (!!response.result || typeof response.result === 'boolean'); + response.result !== undefined; // only undefined is not valid json object }; /// Should be called to create batch payload object |