Skip to content

Commit 8cbf2f9

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: minor
2 parents cbe9ec4 + 0ee26b7 commit 8cbf2f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rate_limiter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
348348
$limit = $limiter->consume();
349349
$headers = [
350350
'X-RateLimit-Remaining' => $limit->getRemainingTokens(),
351-
'X-RateLimit-Retry-After' => $limit->calculateTimeForTokens(1, 1),
351+
'X-RateLimit-Retry-After' => $limit->getRetryAfter()->getTimestamp() - time(),
352352
'X-RateLimit-Limit' => $limit->getLimit(),
353353
];
354354

0 commit comments

Comments
 (0)