Skip to content

Commit da87876

Browse files
authored
Fix CURL settings
1 parent 4aa628b commit da87876

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/install/api/src/Api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ protected function prepareRequest(string $method = 'GET', string $uri = '', arra
998998
curl_setopt_array($curl, [
999999
CURLOPT_RETURNTRANSFER => true,
10001000
CURLOPT_TIMEOUT => 300,
1001-
CURLOPT_SSL_VERIFYHOST => true,
1002-
CURLOPT_SSL_VERIFYHOST => true,
1001+
CURLOPT_SSL_VERIFYPEER => true,
1002+
CURLOPT_SSL_VERIFYHOST => 2,
10031003
CURLOPT_FOLLOWLOCATION => true,
10041004
CURLOPT_MAXREDIRS => 5,
10051005
]);

0 commit comments

Comments
 (0)