Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
FileServer serves directories without trailing slash #12
If I have a FileServer with a default document in
This behavior is incorrect. The browser will resolve all relative paths as relative to the parent folder (
The correct behavior is to serve a redirect to
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.