public static function handleException(\Throwable $e): int
{
$map = ['GuzzleHttp\Exception\ConnectException' => 622,
- 'GuzzleHttp\Psr7\Exception\MalformedUriException' => 600];
+ 'GuzzleHttp\Psr7\Exception\MalformedUriException' => 600,
+ 'GuzzleHttp\Exception\TooManyRedirectsException' => 601];
$messageMap = ['Undefined array key "solution"' => 603];
$startMap = [
'cURL error 60: SSL: no alternative certificate subject name matches target host name' => 695,
'Dnt' => '1',
];
}
- $options = ['timeout' => $timeout, 'http_errors' => false, 'headers' => $headers, 'allow_redirects' => ['track_redirects' => true]] + $options;
+ $options = ['timeout' => $timeout, 'http_errors' => false, 'headers' => $headers, 'allow_redirects' => ['max' => 10, 'track_redirects' => true]] + $options;
if (self::$_cookiesJar) {
$options["cookies"] = self::$_cookiesJar;
}