diff --git a/src/utils/legacyModWrapper.js b/src/utils/legacyModWrapper.js index 12994e0..69030fa 100644 --- a/src/utils/legacyModWrapper.js +++ b/src/utils/legacyModWrapper.js @@ -13,7 +13,8 @@ module.exports = (legacyMod) => { let middleware = (req, res, logFacilities, config, next) => { let ext = req.parsedURL.pathname.match(/[^/]\.([^.]+)$/); if (!ext) ext = ""; - + else ext = ext[1].toLowerCase(); + // Function to parse incoming POST data from the request const parsePostData = (options, callback) => { // If the request method is not POST, return a 405 Method Not Allowed error