diff --git a/libs/api.js b/libs/api.js index 9226dd8..1fe2804 100644 --- a/libs/api.js +++ b/libs/api.js @@ -15,11 +15,11 @@ module.exports = function(logger, portalConfig, poolConfigs){ this.handleApiRequest = function(req, res, next){ switch(req.params.method){ case 'stats': - res.writeHead(200, { 'Content-Type: application/json' }); + res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(portalStats.statsString); return; case 'pool_stats': - res.writeHead(200, { 'Content-Type: application/json' }); + res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify(portalStats.statPoolHistory)); return; case 'live_stats':