Skip to content

Commit 7fe9d02

Browse files
committed
Merge pull request #1 from RAMPKORV/master
Added CURLOPT_SSL_VERIFYHOST = false when verify_ssl === false.
2 parents fd6ed4c + 91d67c5 commit 7fe9d02

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ public function send_request(array $request)
101101
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
102102
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_json);
103103

104-
if ($this->verify_ssl === false) curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
104+
if ($this->verify_ssl === false) {
105+
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
106+
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
107+
}
105108

106109
if ($this->debug) trigger_error("Jsonrpc20WebClient sending request: $request_json");
107110
$response = curl_exec($curl);

0 commit comments

Comments
 (0)