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
I am receiving two log lines from a 404, even when using the default engine.
If I remove the router.StaticFS I no longer see the issue.
Code example:
func main() { router := gin.Default() router.StaticFS("/", http.Dir("/public")) router.Run(":1756") }
The text was updated successfully, but these errors were encountered:
This seems to be caused by PR #1663
Sorry, something went wrong.
fix gin-gonic#1804 which is caused by calling middleware twice.
c680dcb
fix #1804 which is caused by calling middleware twice. (#1805)
4a23c4f
Fix: #1804 `allNoRoute` contains middlewares such as `gin.Logger`, `gin.Recovery`, so on. The correct code is to use `noRoute`. cc: @MetalBreaker
@MusicAdam Thank you for your report!
No branches or pull requests
Description
I am receiving two log lines from a 404, even when using the default engine.
If I remove the router.StaticFS I no longer see the issue.
Code example:
Screenshots
The text was updated successfully, but these errors were encountered: