refactor: frontpage and proxy setting (#4214)

This commit is contained in:
Dag 2024-08-18 19:11:11 +02:00 committed by GitHub
parent e9d3a657ba
commit c0e37bcf35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 17 deletions

View file

@ -113,6 +113,7 @@ final class CurlHttpClient implements HttpClient
if ($config['proxy']) {
curl_setopt($ch, CURLOPT_PROXY, $config['proxy']);
}
if (curl_setopt_array($ch, $config['curl_options']) === false) {
throw new \Exception('Tried to set an illegal curl option');
}