node-ecstatic
node-ecstatic copied to clipboard
Cannot generate file listing if `404.html` is present in /
Found this issue when running ecstatic
in test/public
.
Response is served when the middleware in autoIndex
switch found 404.html
while trying to serve index.html
, so showDir()
is never called.
Because of this issue, I cannot add test case for showDir()
(so #86 was not covered in the test).