diff --git a/src/middleware/staticFileServingAndDirectoryListings.js b/src/middleware/staticFileServingAndDirectoryListings.js index d1f3399..e055df5 100644 --- a/src/middleware/staticFileServingAndDirectoryListings.js +++ b/src/middleware/staticFileServingAndDirectoryListings.js @@ -76,6 +76,7 @@ module.exports = (req, res, logFacilities, config, next) => { let origHref = req.originalParsedURL.pathname; let ext = href.match(/[^\/]\.([^.]+)$/); if (!ext) ext = ""; + else ext = ext[1].toLowerCase(); let dHref = ""; try { dHref = decodeURIComponent(href);