mirror of https://github.com/BTCPrivate/z-nomp.git
Added Headers to Minerpage (#158)
Chrome was wrapping the minerpage html in a <pre> element and not rendering the worker stat page properly. I added ```res.header('Content-Type', 'text/html');``` to the function and now it renders perfectly.
This commit is contained in:
parent
350a6eb44c
commit
04ef1a4cc0
|
@ -228,6 +228,7 @@ module.exports = function(logger){
|
|||
address = address.split(".")[0];
|
||||
portalStats.getBalanceByAddress(address, function(){
|
||||
processTemplates();
|
||||
res.header('Content-Type', 'text/html');
|
||||
res.end(indexesProcessed['miner_stats']);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue