diff --git a/core/servers/content/web.js b/core/servers/content/web.js index 8a9903b4..d1edb221 100644 --- a/core/servers/content/web.js +++ b/core/servers/content/web.js @@ -218,7 +218,7 @@ exports.getModule = class WebServerModule extends ServerModule { const self = this; fs.stat(filePath, (err, stats) => { - if(err) { + if(err || !stats.isFile()) { return self.fileNotFound(resp); }