Skip to content

Commit b2dfaa1

Browse files
authored
Fix S3 http requests always retrying once on success (#263)
1 parent 4997b56 commit b2dfaa1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Aws/AwsStorageProvider.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,6 @@ protected function retryHandler()
187187
$stack->push(Middleware::retry(function (int $retries, RequestInterface $request, ?ResponseInterface $response = null) {
188188
$text = '<comment>Retrying Request: </comment><options=bold>'.$request->getMethod().'</> '.Str::before($request->getUri(), '?');
189189

190-
if ($retries === 0) {
191-
Helpers::step($text);
192-
193-
return true;
194-
}
195-
196190
if ($response && $response->getStatusCode() < 300) {
197191
return false;
198192
}

0 commit comments

Comments
 (0)