Webserver Crashes accessing Directory #177
This commit is contained in:
@@ -218,7 +218,7 @@ exports.getModule = class WebServerModule extends ServerModule {
|
|||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
fs.stat(filePath, (err, stats) => {
|
fs.stat(filePath, (err, stats) => {
|
||||||
if(err) {
|
if(err || !stats.isFile()) {
|
||||||
return self.fileNotFound(resp);
|
return self.fileNotFound(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user