-
-
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
🐞 static.go path wildcard support #71
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! |
@zhongwei thx for reporting! 👍 Can you please send PR for fix this? |
This was referenced Feb 7, 2020
#121 fixed absolute paths on windows app.Static("public")
// http://localhost:3000/index.html
// http://localhost:3000/style.css
// http://localhost:3000/main.js
app.Static("public/index.html")
// http://localhost:3000 => index.html
app.Static("*", "public/index.html")
// http://localhost:3000/john => index.html
// Wildcard paths work for single files now
app.Static("/ok*", "public/index.html")
// http://localhost:3000/ok/test => index.html |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fiber version/commit
v1.4.0
Issue description
static.go line 36 can't support "/static/*"
Expected behavior
Steps to reproduce
Code snippet
// Check if wildcard for single files
if prefix == "" || prefix == "/" {
wildcard = true
}
The text was updated successfully, but these errors were encountered: