Browse Source

Fixed case sensitivity in extensions.

dockerScript
jrtechs 4 years ago
parent
commit
8c6ea29fdf
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      includes/staticContentServer.js

+ 2
- 1
includes/staticContentServer.js View File

@ -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;
}
};
};

Loading…
Cancel
Save