From e59ae654c0615cfa95fa8f839bdee8900719fe17 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 22 Jan 2017 10:53:41 +0100 Subject: [PATCH] Increased number of followed redirects to 15 --- module/Core/src/Service/UrlShortener.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/Core/src/Service/UrlShortener.php b/module/Core/src/Service/UrlShortener.php index bc422cab..9d6927bf 100644 --- a/module/Core/src/Service/UrlShortener.php +++ b/module/Core/src/Service/UrlShortener.php @@ -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); }