From 6f6fb1f89f31efedf03ed66e739808880830304b Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Tue, 27 Aug 2024 09:42:06 +0200 Subject: [PATCH] Fix 500 Internal Server Error related to URL rewriting --- src/middleware/rewriteURL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/rewriteURL.js b/src/middleware/rewriteURL.js index fff02f3..82bc97c 100644 --- a/src/middleware/rewriteURL.js +++ b/src/middleware/rewriteURL.js @@ -26,7 +26,7 @@ module.exports = (req, res, logFacilities, config, next) => { !_fileState ) { fs.stat( - "." + decodeURIComponent(req.parsedUrl.pathname), + "." + decodeURIComponent(req.parsedURL.pathname), (err, stats) => { var _fileState = 3; if (err) {