Skip to content

Cannot generate file listing if 404.html is present in / #88

@leesei

Description

@leesei

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions