hayajo / Mojolicious-Plugin-Directory

Other
6 stars 6 forks source link

Fixing bug (?) under Mojo 9.x for t/auto_index.t #10

Open fletch opened 3 years ago

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

Not a Mojo expert but this at least got me running under 9.13. Fixes #9

briandfoy commented 1 year ago

I've forked this module as Mojolicious::Plugin::DirectoryServer (https://github.com/briandfoy/mojolicious-plugin-directoryserver) and applied this patch. Thanks,