Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1e9205

Browse filesBrowse files
committed
minor
1 parent c61dc1f commit e1e9205
Copy full SHA for e1e9205

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎rate_limiter.rst

Copy file name to clipboardExpand all lines: rate_limiter.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ the :class:`Symfony\\Component\\RateLimiter\\Reservation` object returned by the
350350
$limit = $limiter->consume();
351351
$headers = [
352352
'X-RateLimit-Remaining' => $limit->getRemainingTokens(),
353-
'X-RateLimit-Retry-After' => $limit->getRetryAfter()->getTimestamp(),
353+
'X-RateLimit-Retry-After' => $limit->getRetryAfter()->getTimestamp() - time(),
354354
'X-RateLimit-Limit' => $limit->getLimit(),
355355
];
356356

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.