This commit is contained in:
David Ralph
2019-02-19 12:52:17 +00:00
committed by GitHub
parent 8bb090d61d
commit 46cc43b338

View File

@@ -13,7 +13,7 @@ module.exports = (baseDir, indexFile) => {
let requestedPath = req.parsedUrl.pathname.replace(/\/.\.\//g, '');
let requestedExt = extname(requestedPath);
const filePath = join(baseDir, requestedPath ;
const filePath = join(baseDir, requestedPath);
stat(filePath, (err, stats) => {
if (err) { next(); return; }