From 0ea18d0d661770271cf16b35d37c0f80cb13730e Mon Sep 17 00:00:00 2001 From: IeM Date: Wed, 31 Jan 2018 11:50:51 -0800 Subject: [PATCH] Update api.js Fix : #554 --- libs/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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':