Skip to content
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

StaticContent: handle empty {path...} #81

Closed
Ribesg opened this issue Apr 3, 2017 · 1 comment
Closed

StaticContent: handle empty {path...} #81

Ribesg opened this issue Apr 3, 2017 · 1 comment

Comments

@Ribesg
Copy link
Contributor

Ribesg commented Apr 3, 2017

My error was to use /static/* as the route instead of /static. Because of this the path variable was empty and it crashed.
Maybe there should be a way to prevent this kind of user error. Documenting StaticContent would be a first step.

Also don't try to read the basePath folder as a file when path is empty.

@orangy
Copy link
Contributor

orangy commented Apr 20, 2017

Fixed with new static { … } DSL

@orangy orangy closed this as completed Apr 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants