forked from svrjs/svrjs
Fix server crashes with .dirimages
This commit is contained in:
parent
ebf996856e
commit
50be3cb450
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -3528,7 +3528,7 @@ if (!cluster.isPrimary) {
|
|||
}
|
||||
|
||||
// Check if index file exists
|
||||
if (req.url == "/" || stats.isDirectory()) {
|
||||
if (!dirImagesMissing && (req.url == "/" || stats.isDirectory())) {
|
||||
fs.stat((readFrom + "/index.html").replace(/\/+/g, "/"), function (e, s) {
|
||||
if (e || !s.isFile()) {
|
||||
fs.stat((readFrom + "/index.htm").replace(/\/+/g, "/"), function (e, s) {
|
||||
|
|
Reference in a new issue