Webserver Crashes accessing Directory #177

This commit is contained in:
Bryan Ashby 2018-04-23 18:41:12 -06:00
parent 695e84e16f
commit a1f55e5ad5
1 changed files with 1 additions and 1 deletions

View File

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