diff --git a/internal/middleware/idempotency.go b/internal/middleware/idempotency.go index 193b7d640..4d0ee7da5 100644 --- a/internal/middleware/idempotency.go +++ b/internal/middleware/idempotency.go @@ -84,7 +84,10 @@ func Idempotency() gin.HandlerFunc { // NOTE: using the auth header is only an option // because we ONLY support bearer oauth tokens. key = c.Request.Header.Get("Authorization") + - c.Request.UserAgent() + key + c.Request.UserAgent() + + c.Request.Method + + c.Request.URL.RequestURI() + + key // Look for stored response. code, _ := responses.Get(key)