Catch rare exception receiving line folding characters in header value of redirected request
This commit is contained in:
parent
064fd922e7
commit
bf85c8f986
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue