Skip to content

Commit 40ddd18

Browse files
tanenbaumcleptric
andauthored
http_ssl_verify_peer sets CURLOPT_SSL_VERIFYPEER correctly (#1686)
Co-authored-by: Michi Hoffmann <[email protected]>
1 parent 617dde3 commit 40ddd18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HttpClient/HttpClient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function sendRequest(Request $request, Options $options): Response
7474
curl_setopt($curlHandle, \CURLOPT_HTTP_VERSION, \CURL_HTTP_VERSION_1_1);
7575

7676
$httpSslVerifyPeer = $options->getHttpSslVerifyPeer();
77-
if ($httpSslVerifyPeer) {
78-
curl_setopt($curlHandle, \CURLOPT_SSL_VERIFYPEER, true);
77+
if (!$httpSslVerifyPeer) {
78+
curl_setopt($curlHandle, \CURLOPT_SSL_VERIFYPEER, false);
7979
}
8080

8181
$httpProxy = $options->getHttpProxy();

0 commit comments

Comments
 (0)