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:
Shimon Doodkin 2014-01-23 10:52:31 +02:00
parent 6b237fe61e
commit 50825e3a11

View File

@ -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) {