rpc: better bitcoind compat.
This commit is contained in:
parent
3ac0d3de78
commit
ad51bf53f3
@ -614,12 +614,13 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!array) {
|
if (!array)
|
||||||
res.send(200, JSON.stringify(out[0]), 'json');
|
out = out[0];
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
res.send(200, out);
|
out = JSON.stringify(out);
|
||||||
|
out += '\n';
|
||||||
|
|
||||||
|
res.send(200, out, 'json');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.get('/', co(function* (req, res) {
|
this.get('/', co(function* (req, res) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user