-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unexpected behaviour in example static-file-server
#2809
Comments
Why did you expect this? I think the examples could certainly be better explained, but I'm not really sure about the original intent behind that example. |
Yes, I think my description was not very clear. Let me try again: Typically when you serve static files from a folder like The issue is, that in the example the whole |
Bug Report
Version
0.7.5
Description
Unexpected behaviour in example
static-file-server
, functionusing_serve_dir_with_assets_fallback()
:It serves assets (in this case
script.js
) from the url/assets/script.js
, but unexpectedly also from/script.js
, because the wholeassets
folder is used as fallback instead of just theindex.html
file.I expected to see this happen:
url
/script.js
should fallback toindex.html
Instead, this happened:
url
/script.js
responded withscript.js
The text was updated successfully, but these errors were encountered: