We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096ce41 commit 3205495Copy full SHA for 3205495
1 file changed
middleware/rate_limiter.go
@@ -89,10 +89,10 @@ RateLimiterWithConfig returns a rate limiting middleware
89
id := ctx.RealIP()
90
return id, nil
91
},
92
- ErrorHandler: func(context *echo.Context, err error) error {
+ ErrorHandler: func(ctx *echo.Context, err error) error {
93
return context.JSON(http.StatusTooManyRequests, nil)
94
95
- DenyHandler: func(context *echo.Context, identifier string) error {
+ DenyHandler: func(ctx *echo.Context, identifier string, err error) error {
96
return context.JSON(http.StatusForbidden, nil)
97
98
}
0 commit comments