diff --git a/config/express.js b/config/express.js index e334c6ec..2719f01d 100755 --- a/config/express.js +++ b/config/express.js @@ -94,7 +94,7 @@ module.exports = function(db) { urlPath = url.parse(req.url).path.split('/'); if (urlPath.indexOf('static') > -1) { urlPath.splice(1, 1); - if(process.env.NODE_ENV == 'development'){ + if(process.env.NODE_ENV === 'development'){ req.root = req.protocol + '://' + config.baseUrl + ':' + config.port + urlPath.join('/'); } else { req.root = req.protocol + '://' + config.baseUrl + urlPath.join('/');