Skip to content

Commit 0628f55

Browse files
authored
fix retry whith 403 status code (#1228)
1 parent 9039288 commit 0628f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClient/AwsRetryStrategy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function shouldRetry(AsyncContext $context, ?string $responseContent, ?Tr
3131
return true;
3232
}
3333

34-
if (400 !== $context->getStatusCode()) {
34+
if (!\in_array($context->getStatusCode(), [400, 403], true)) {
3535
return false;
3636
}
3737

0 commit comments

Comments
 (0)