-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
prefix and static file serving interact badly #168
Comments
I think the prefix is actually irrelevant. I get the same error with App::new()
.handler("/nested", fs::StaticFiles::new("some/folder")
.index_file("index.html")) |
I also find this slightly surprising App::new()
.handler("nested", fs::StaticFiles::new("some/folder")
.index_file("index.html"))
In general I would not expect the forward slashes either before or after the prefix or the handler route to affect the routing. But this may be expected behavior. |
fafhrd91
added a commit
that referenced
this issue
Apr 10, 2018
fixed by 81ac905 |
kingoflolz
pushed a commit
to kingoflolz/actix-web
that referenced
this issue
Apr 15, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take the following app:
Test with httpie:
The second test generates an incorrect redirect.
The text was updated successfully, but these errors were encountered: