Skip to content

Commit

Permalink
bugfix: the value of retries wont change, use pre-decrement instead o…
Browse files Browse the repository at this point in the history
…f post-decrement
  • Loading branch information
RogierW committed Dec 9, 2024
1 parent 28d16e8 commit 91f0c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private function makeCurlRequest(
if ($httpCode === 0) {
// Retry.
if ($retries > 0) {
return $this->makeCurlRequest($httpVerb, $fullUrl, $headers, $payload, $maxRedirects, $retries--);
return $this->makeCurlRequest($httpVerb, $fullUrl, $headers, $payload, $maxRedirects, --$retries);
}

// Return 504 Gateway Timeout.
Expand Down

0 comments on commit 91f0c82

Please sign in to comment.