Skip to content

Commit 7c59c5f

Browse files
authored
Update rate-limiter.md (#193) with error for DenyHandler func
1 parent fbb06bf commit 7c59c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/content/middleware/rate-limiter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ config := middleware.RateLimiterConfig{
3535
ErrorHandler: func(context echo.Context, err error) error {
3636
return context.JSON(http.StatusTooManyRequests, nil)
3737
},
38-
DenyHandler: func(context echo.Context, identifier string) error {
38+
DenyHandler: func(context echo.Context, identifier string,err error) error {
3939
return context.JSON(http.StatusForbidden, nil)
4040
},
4141
}

0 commit comments

Comments
 (0)