From be07cced24e0104de3cf2d2e762147dd3e348d30 Mon Sep 17 00:00:00 2001
From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com>
Date: Sun, 15 May 2022 16:04:04 +0800
Subject: [PATCH] fix: if no php-curl, can show error message now
---
 index.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/index.php b/index.php
index 807eed4..7b83647 100644
--- a/index.php
+++ b/index.php
@@ -67,7 +67,9 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') {
 } else {
     include 'platform/Normal.php';
     if (!function_exists('curl_init')) {
-        return message('Need curl, please install php-curl.', 'Error', 500);
+        http_response_code(500);
+        echo 'Need curl, please install php-curl.';
+        exit(1);
     }
     $path = getpath();
     //echo 'path:'. $path;