1
0
Fork 0
forked from svrjs/svrjs

Fix a 500 HTTP error code related to URL rewriting functionality.

This commit is contained in:
Dorian Niemiec 2024-08-25 09:14:38 +02:00
parent 89e9b35829
commit 5d463c9f11

View file

@ -21,7 +21,7 @@ module.exports = (req, res, logFacilities, config, next) => {
for (let i = _mapBegIndex ? _mapBegIndex : 0; i < map.length; i++) { for (let i = _mapBegIndex ? _mapBegIndex : 0; i < map.length; i++) {
let mapEntry = map[i]; let mapEntry = map[i];
if ( if (
req.parsedUrl.pathname != "/" && req.parsedURL.pathname != "/" &&
(mapEntry.isNotDirectory || mapEntry.isNotFile) && (mapEntry.isNotDirectory || mapEntry.isNotFile) &&
!_fileState !_fileState
) { ) {