-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileserver tries to read directories #256
Comments
Sounds like a good solution. Some kind of configurable directory index support could also be nice at some point. |
@s-ludwig What kind of directory index support do you think would be good? I'd like to work on it if no one else is already. I think it should be where the user can specify to either
all by setting things in the If that's agreeable, should the default directory listing page be a diet template or should it be generated with code? If a template, where should the file go? I don't know what the paths are that are searched by Somewhat unrelated, but I don't know what use case triggered the problems you guys were having with Also do you prefer pull requests or patchsets for contributions? |
If you try to request a directory from an HTTP server that routes a request for a directory to the handler returned by
serveStaticFiles
(not counting the root directory) it will try to read the directory like a file and fail.You will get a similar error to this:
The
enforce
is triggered here https://github.com/rejectedsoftware/vibe.d/blob/v0.7.16/source/vibe/core/drivers/threadedfile.d#L171I fixed this issue by inserting
On line 132 of fileserver.d.
I am using 0.7.16 with dmd 2.063.2 on Arch Linux 64 bit.
The text was updated successfully, but these errors were encountered: