Skip to content

Commit 8c22985

Browse files
committed
Ignore SSL certificate validation locally
1 parent 7c0ac76 commit 8c22985

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)