mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-27 17:31:20 -06:00
Increased number of followed redirects to 15
This commit is contained in:
parent
a8bf699f2d
commit
e59ae654c0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user