Skip to content

Commit

Permalink
Made the retry after check stricter (#13759)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored and taylorotwell committed May 29, 2016
1 parent dbfd364 commit f9f115f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Middleware/ThrottleRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function addHeaders(Response $response, $maxAttempts, $remainingAttemp
*/
protected function calculateRemainingAttempts($key, $maxAttempts, $retryAfter = null)
{
if ($retryAfter) {
if (! is_null($retryAfter)) {
return 0;
}

Expand Down

0 comments on commit f9f115f

Please sign in to comment.