diff --git a/src/Infrastructure/Filters/IdempotencyFilter.cs b/src/Infrastructure/Filters/IdempotencyFilter.cs index 188f683..061f738 100644 --- a/src/Infrastructure/Filters/IdempotencyFilter.cs +++ b/src/Infrastructure/Filters/IdempotencyFilter.cs @@ -37,7 +37,7 @@ public class IdempotencyFilter(ILogger logger, IRedisBasketRe var body = value!.Serialize(); var hashBytes = MD5.HashData(Encoding.ASCII.GetBytes(body)); var hashString = BitConverter.ToString(hashBytes).Replace("-", "").ToLowerInvariant(); - var redisKey = $"{request.Path.Value}:{hashString}"; + var redisKey = $"{request.Path.Value}:{request.Method}:{hashString}"; if (await redis.Exist(redisKey)) { logger.LogWarning("invalid request path: {path},remote ip address:{ip}", request.Path,