Skip to content

Commit a2bac80

Browse files
committed
Release version 2.1.5
1 parent 76a7d5a commit a2bac80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MyRequests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,10 @@ public function curlRequest($url = '', $data = array(), $method = 'GET')
881881
if ($this->referrer) {
882882
$curl->setReferer($this->referrer);
883883
}
884+
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, $this->isSSL);
885+
$curl->setOpt(CURLOPT_SSL_VERIFYHOST, $this->isSSL);
884886
$parseUrl = parse_url($url);
885887
if (isset($parseUrl['scheme']) && $parseUrl['scheme'] === 'https') {
886-
$curl->setOpt(CURLOPT_SSL_VERIFYPEER, $this->isSSL);
887-
$curl->setOpt(CURLOPT_SSL_VERIFYHOST, $this->isSSL);
888888
$curl->setOpt(CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
889889
}
890890
if (isset($parseUrl['scheme']) && $parseUrl['scheme'] === 'http') {

0 commit comments

Comments
 (0)