added curl option to specifically support http (originally suggested by @Kyouma54 in PR #251)

bumped version to 2.0.4
This commit is contained in:
malle-pietje
2025-01-02 10:59:34 +01:00
parent 551c1c3741
commit f9ce6bf54f

View File

@@ -4488,7 +4488,7 @@ class Client
{
$ch = curl_init();
$curl_options = [
CURLOPT_PROTOCOLS => CURLPROTO_HTTPS,
CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP,
CURLOPT_HTTP_VERSION => $this->curl_http_version,
CURLOPT_SSL_VERIFYPEER => $this->curl_ssl_verify_peer,
CURLOPT_SSL_VERIFYHOST => $this->curl_ssl_verify_host,