callback with server headers for wallet coin name
client.rpc.call('getinfo', [], console.log,function(){});
result : {}, {server: 'nexuscoin-json-rpc/v0.8.6-12-g4d83b6e-dirty-beta'}
This commit is contained in:
parent
6b237fe61e
commit
50825e3a11
@ -104,7 +104,7 @@ Client.prototype.call = function(method, params, callback, errback, path) {
|
||||
}
|
||||
} else if (decodedResponse.hasOwnProperty('result')) {
|
||||
if (callback) {
|
||||
callback(decodedResponse.result);
|
||||
callback(decodedResponse.result,response.headers);
|
||||
}
|
||||
} else {
|
||||
if (errback) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user