Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove query options from the webserver's directory listing
The `?all` option would show the full directory listing instead of one that is reduced to only PDF files and folders. However, in practice I find that the reduced listing is never really useful because non-PDF files such as `web/viewer.html` are accessed much more often, and thus opening the full view is usually the first action I perform. The `?frame` option puts the directory listing in a resizable frame, but the other side of the frame is always empty. This functionality is traced back to the original code from commit 4df24f4 from 2014, but even back then I doubt this was ever really used. The `?side` option would show the reduced directory listing without the link to go to the full view. Overall, none of the options seem useful nowadays, so we remove all of them to simplify the code (in preparation of upcoming refactoring of this file) and to make the directory listing more useful by default. Finally, now that we always show the full directory listing we change the header to "Index of <path>" because it shows more than just PDFs and it matches implementations of other webservers such as Nginx and Apache.
- Loading branch information