diff --git a/src/Http/RateLimit/Handler.php b/src/Http/RateLimit/Handler.php index 71c07bbe5..f5efe8e4f 100644 --- a/src/Http/RateLimit/Handler.php +++ b/src/Http/RateLimit/Handler.php @@ -103,8 +103,6 @@ public function rateLimitRequest(Request $request, $limit = 0, $expires = 0) } elseif ($limit > 0 || $expires > 0) { $this->throttle = new Route(['limit' => $limit, 'expires' => $expires]); - $this->keyPrefix = md5($request->path()); - // Otherwise we'll use the throttle that gives the consumer the largest // amount of requests. If no matching throttle is found then rate // limiting will not be imposed for the request. @@ -171,7 +169,7 @@ protected function getMatchingThrottles() */ protected function key($key) { - return sprintf('dingo.api.%s.%s.%s', $this->keyPrefix, $key, $this->getRateLimiter()); + return sprintf('dingo.api.%s.%s', $key, $this->getRateLimiter()); } /**