From 656c471b0bbd83b1d949250fdbfbc52d0fe5c0dc Mon Sep 17 00:00:00 2001 From: tofulm Date: Thu, 4 May 2023 17:03:27 +0200 Subject: [PATCH] fix: erreur php curl en local --- inc/vite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/vite.php b/inc/vite.php index 2271740..afea007 100644 --- a/inc/vite.php +++ b/inc/vite.php @@ -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);