From 04ef1a4cc077b81bb7fb6ee7b1cdda3bb92b8d38 Mon Sep 17 00:00:00 2001 From: Joshua McKenzie Date: Sat, 1 Jul 2017 15:19:27 -0400 Subject: [PATCH] Added Headers to Minerpage (#158) Chrome was wrapping the minerpage html in a
 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.
---
 libs/website.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/website.js b/libs/website.js
index 579fd73..3793e3a 100644
--- a/libs/website.js
+++ b/libs/website.js
@@ -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']);
             });
         }