Skip to content

Commit 25d264d

Browse files
Merge pull request #26 from alexszilagyi/disable-ssl-validation-locally
Ignore SSL certificate validation locally
2 parents 7c0ac76 + 8c22985 commit 25d264d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PrestashopWebServiceLibrary.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ protected function executeRequest($url, $curl_params = array())
133133
CURLINFO_HEADER_OUT => true,
134134
CURLOPT_HTTPAUTH => CURLAUTH_BASIC,
135135
CURLOPT_USERPWD => $this->key.':',
136-
CURLOPT_HTTPHEADER => array( 'Expect:' )
136+
CURLOPT_HTTPHEADER => array( 'Expect:' ),
137+
CURLOPT_SSL_VERIFYPEER => !(env('APP_ENV') === 'local'),
138+
CURLOPT_SSL_VERIFYHOST => !(env('APP_ENV') === 'local')
137139
);
138140

139141
$curl_options = array();

0 commit comments

Comments
 (0)