mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 19:42:24 -05:00
initial work on supporting the idempotency-key request header
This commit is contained in:
parent
4a3ece0c6c
commit
fd2be943b7
3 changed files with 122 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue