Webserver Crashes accessing Directory #177
This commit is contained in:
parent
695e84e16f
commit
a1f55e5ad5
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue