Open fletch opened 3 years ago
In before_dispatch hook rather than falling through if the directory exists but auto_index is disabled explicitly reply not_found so that returns 404 (rather than 500).
before_dispatch
auto_index
not_found
Not a Mojo expert but this at least got me running under 9.13. Fixes #9
I've forked this module as Mojolicious::Plugin::DirectoryServer (https://github.com/briandfoy/mojolicious-plugin-directoryserver) and applied this patch. Thanks,
In
before_dispatch
hook rather than falling through if the directory exists butauto_index
is disabled explicitly replynot_found
so that returns 404 (rather than 500).Not a Mojo expert but this at least got me running under 9.13. Fixes #9