Catch rare exception receiving line folding characters in header value of redirected request

This commit is contained in:
Hypolite Petovan 2023-07-31 01:17:33 +02:00
parent 064fd922e7
commit bf85c8f986
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ class Server
} else {
$this->logger->info('SSL-verified URL probe failed with error code: ' . $e->getCode());
}
} catch (\InvalidArgumentException $e) {
$this->logger->error('Invalid argument provided to HTTP client', ['base_url' => $base_url, 'exception' => $e]);
return ['data' => false, 'time' => 0, 'curl_info' => [], 'ssl_state' => null];
}
$probe_end = microtime(true);