mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-14 04:00:57 +03:00
Increased number of followed redirects to 15
This commit is contained in:
parent
a8bf699f2d
commit
e59ae654c0
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue