Change "==" to "===" in config/express.js
This commit is contained in:
parent
367e2df0ad
commit
736595e8ee
|
@ -94,7 +94,7 @@ module.exports = function(db) {
|
||||||
urlPath = url.parse(req.url).path.split('/');
|
urlPath = url.parse(req.url).path.split('/');
|
||||||
if (urlPath.indexOf('static') > -1) {
|
if (urlPath.indexOf('static') > -1) {
|
||||||
urlPath.splice(1, 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('/');
|
req.root = req.protocol + '://' + config.baseUrl + ':' + config.port + urlPath.join('/');
|
||||||
} else {
|
} else {
|
||||||
req.root = req.protocol + '://' + config.baseUrl + urlPath.join('/');
|
req.root = req.protocol + '://' + config.baseUrl + urlPath.join('/');
|
||||||
|
|
Loading…
Reference in a new issue