From a8a9ab78610740d2f788acc15f20d147ccba036f Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 29 May 2016 10:46:02 +0100 Subject: [PATCH] Made the retry after check stricter --- src/Illuminate/Routing/Middleware/ThrottleRequests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Routing/Middleware/ThrottleRequests.php b/src/Illuminate/Routing/Middleware/ThrottleRequests.php index 894e9eaa53d0..8cfc54c374ff 100644 --- a/src/Illuminate/Routing/Middleware/ThrottleRequests.php +++ b/src/Illuminate/Routing/Middleware/ThrottleRequests.php @@ -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; }