From d75fb3e3f831e932924e38487a73e0dc016101d2 Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 9 Aug 2024 13:15:34 +0100 Subject: [PATCH] only use the request-uri --- internal/middleware/idempotency.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/middleware/idempotency.go b/internal/middleware/idempotency.go index 193b7d6407..4d0ee7da5a 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)