1
0
Fork 0

Merge pull request #2118 from acasademont/retry_on_error

Retry file download also on Internal Server Error 500 code ...
pull/2284/head
Jordi Boggiano 2013-07-26 07:19:20 -07:00
commit f8a1d41967
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class FileDownloader implements DownloaderInterface
break;
} catch (TransportException $e) {
// if we got an http response with a proper code, then requesting again will probably not help, abort
if (0 !== $e->getCode() || !$retries) {
if ((0 !== $e->getCode() && 500 !== $e->getCode()) || !$retries) {
throw $e;
}
if ($this->io->isVerbose()) {