Skip to content

Commit f105182

Browse files
committed
updated: return SSL error and headers
1 parent 87598d2 commit f105182

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CPanel.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ public function call($module, $function, $args = array())
174174
CURLOPT_HTTPHEADER => $headers,
175175
));
176176

177+
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
178+
177179
$curl_res = curl_exec($curl);
178180
$err = curl_error($curl);
179181
$err_no = curl_errno($curl);
@@ -191,6 +193,7 @@ public function call($module, $function, $args = array())
191193
'curl_response' => $curl_res,
192194
'curl_response_decoded' => $curl_response_decoded,
193195
'header_size' => $header_size,
196+
'headers' => $headers,
194197
'header' => $header,
195198
'body' => $body,
196199
'error' => $err,

0 commit comments

Comments
 (0)