Change "==" to "===" in config/express.js

This commit is contained in:
David Baldwynn 2017-04-22 19:57:59 -07:00 committed by GitHub
parent 367e2df0ad
commit 736595e8ee

View file

@ -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('/');