We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Hertz version:
Please provide the version of Hertz you are using.
Environment:
The output of go env.
go env
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
hertz.Static("/static", "./static")
[Error] HERTZ: Cannot open file="./static/static/index.html", error=open ./static/static/index.html: no such file or directory
请求是/static/index.html
Sorry, something went wrong.
@UserLooper #400 看下是不是这个问题
@UserLooper #400看下不是这个问题
看起来是的,我理解为relativePath是http请求的路径,看起来不是,只是文件的子路径
No branches or pull requests
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Hertz version:
Please provide the version of Hertz you are using.
Environment:
The output of
go env
.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: