From 59d97fe5c7d8f2c62265ce827d8d1eb581eb14d8 Mon Sep 17 00:00:00 2001 From: webguosai Date: Fri, 11 Oct 2024 13:42:59 +0800 Subject: [PATCH] Update RequestOptions.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 不验证https --- src/Qiniu/Http/RequestOptions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Qiniu/Http/RequestOptions.php b/src/Qiniu/Http/RequestOptions.php index be0c6d5e..d1c55108 100644 --- a/src/Qiniu/Http/RequestOptions.php +++ b/src/Qiniu/Http/RequestOptions.php @@ -99,6 +99,11 @@ public function getCurlOpt() if ($this->proxy_user_password != null) { $result[CURLOPT_PROXYUSERPWD] = $this->proxy_user_password; } + + // https + $result[CURLOPT_SSL_VERIFYPEER] = false; + $result[CURLOPT_SSL_VERIFYHOST] = false; + return $result; } }