Fixed response for not returning a header.
This commit is contained in:
parent
0fe9d92663
commit
5be6d0d724
@ -175,7 +175,7 @@ BlockController.prototype.blockIndex = function(req, res) {
|
||||
var self = this;
|
||||
var height = req.params.height;
|
||||
self._header.getBlockHeader(parseInt(height), function(err, info) {
|
||||
if (err) {
|
||||
if (err || !info) {
|
||||
return self.common.handleErrors(err, res);
|
||||
}
|
||||
res.jsonp({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user