diff --git a/src/middleware/rewriteURL.js b/src/middleware/rewriteURL.js index c2bad5f..5038e6b 100644 --- a/src/middleware/rewriteURL.js +++ b/src/middleware/rewriteURL.js @@ -21,7 +21,7 @@ module.exports = (req, res, logFacilities, config, next) => { for (let i = _mapBegIndex ? _mapBegIndex : 0; i < map.length; i++) { let mapEntry = map[i]; if ( - req.parsedUrl.pathname != "/" && + req.parsedURL.pathname != "/" && (mapEntry.isNotDirectory || mapEntry.isNotFile) && !_fileState ) {