forked from svrjs/svrjs
Fix a 500 HTTP error code related to URL rewriting functionality.
This commit is contained in:
parent
89e9b35829
commit
5d463c9f11
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
) {
|
||||
|
|
Reference in a new issue