Skip to content

Commit a57b6e2

Browse files
Fix #81: Stop using insecure option by default
1 parent 36693c5 commit a57b6e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function createCurlOptions($method, $body = null, $headers = null)
185185
CURLOPT_RETURNTRANSFER => true,
186186
CURLOPT_HEADER => 1,
187187
CURLOPT_CUSTOMREQUEST => strtoupper($method),
188-
CURLOPT_SSL_VERIFYPEER => false,
188+
CURLOPT_SSL_VERIFYPEER => true,
189189
CURLOPT_FAILONERROR => false
190190
],
191191
$this->curlOptions
@@ -256,6 +256,7 @@ public function makeRequest($method, $url, $body = null, $headers = null, $retry
256256
$curl = curl_init($url);
257257

258258
$curlOpts = $this->createCurlOptions($method, $body, $headers);
259+
259260
curl_setopt_array($curl, $curlOpts);
260261

261262
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->headers);

0 commit comments

Comments
 (0)