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:
Joshua McKenzie 2017-07-01 15:19:27 -04:00 committed by Procrastinator
parent 350a6eb44c
commit 04ef1a4cc0
1 changed files with 1 additions and 0 deletions

View File

@ -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']);
});
}