Increased number of followed redirects to 15

This commit is contained in:
Alejandro Celaya 2017-01-22 10:53:41 +01:00
parent a8bf699f2d
commit e59ae654c0

View File

@ -117,7 +117,9 @@ class UrlShortener implements UrlShortenerInterface
protected function checkUrlExists(UriInterface $url)
{
try {
$this->httpClient->request('GET', $url);
$this->httpClient->request('GET', $url, ['allow_redirects' => [
'max' => 15,
]]);
} catch (GuzzleException $e) {
throw InvalidUrlException::fromUrl($url, $e);
}