From 8c6ea29fdf124db32bb5f113c4dbd7c75a69bed7 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Wed, 11 Dec 2019 22:12:06 -0500 Subject: [PATCH] Fixed case sensitivity in extensions. --- includes/staticContentServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/staticContentServer.js b/includes/staticContentServer.js index beedc5d..118108c 100644 --- a/includes/staticContentServer.js +++ b/includes/staticContentServer.js @@ -13,6 +13,7 @@ module.exports= serveStaticContent: function(request, result, filename, baseURL) { var fullPath = baseURL + filename; + var filename = filename.toLowerCase(); if(fullPath.charAt(0) === '/') fullPath = fullPath.substring(1,); if (filename.includes(".svg") || filename.includes(".svg")) @@ -64,4 +65,4 @@ module.exports= } return false; } - }; \ No newline at end of file + };