fix: erreur php curl en local
This commit is contained in:
parent
5a0d7f0ae2
commit
656c471b0b
1 changed files with 3 additions and 1 deletions
|
@ -45,9 +45,11 @@ function isDev(string $entry): bool
|
|||
) {
|
||||
$handle = curl_init(VITE_HOST . "/" . $entry);
|
||||
|
||||
curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, false);
|
||||
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
|
||||
|
||||
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($handle, CURLOPT_NOBODY, true);
|
||||
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
|
||||
|
||||
curl_exec($handle);
|
||||
$error = curl_errno($handle);
|
||||
|
|
Loading…
Add table
Reference in a new issue