fix: erreur php curl en local

This commit is contained in:
Christophe 2023-05-04 17:03:27 +02:00
parent 5a0d7f0ae2
commit 656c471b0b

View file

@ -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);