File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,6 @@ private function verbThePayload($verb, $payload)
98
98
$ data_string = json_encode (Helper::removeNulls ($ payload ));
99
99
curl_setopt ($ this ->ch , CURLOPT_CUSTOMREQUEST , $ verb );
100
100
curl_setopt ($ this ->ch , CURLOPT_POSTFIELDS , $ data_string );
101
- if ($ this ->_debug ) {
102
- curl_setopt ($ this ->ch , CURLOPT_SSL_VERIFYPEER , false );
103
- }
104
101
curl_setopt ($ this ->ch , CURLOPT_HTTPHEADER , array (
105
102
'Accept: application/json ' ,
106
103
'Content-Type: application/json ' ,
@@ -112,6 +109,9 @@ private function verbThePayload($verb, $payload)
112
109
113
110
private function sendRequest ()
114
111
{
112
+ if ($ this ->_debug ) {
113
+ curl_setopt ($ this ->ch , CURLOPT_SSL_VERIFYPEER , false );
114
+ }
115
115
$ this ->curl_result = curl_exec ($ this ->ch );
116
116
$ this ->status = curl_getinfo ($ this ->ch , CURLINFO_HTTP_CODE );
117
117
}
You can’t perform that action at this time.
0 commit comments