initial work on supporting the idempotency-key request header

This commit is contained in:
kim 2024-08-09 12:50:39 +01:00
commit fd2be943b7
3 changed files with 122 additions and 3 deletions

View file

@ -52,7 +52,7 @@ func RateLimit(limit int, exceptions []string) gin.HandlerFunc {
if limit <= 0 {
// Rate limiting is disabled.
// Return noop middleware.
return func(ctx *gin.Context) {}
return func(c *gin.Context) {}
}
limiter := limiter.New(