If I have a FileServer with a default document in /folder/index.html, and I navigate to /folder, the FileServer will serve the contents of the default document.
This behavior is incorrect. The browser will resolve all relative paths as relative to the parent folder (/), since it thinks that folder is a filename.
The correct behavior is to serve a redirect to /folder/, which will then serve the default document as usual.
For security reasons, this should only happen if the folder has a default document; otherwise, attackers can discover arbitrary folder names within the document root.
I'll fix this.
Awesome - that's been on my wishlist for a while.
Force directory URLs to end with / (fixes #12)
Remove trailing / handler after fixing capsela/capsela#12