stany.ferer 1 年之前
父节点
当前提交
038b0f1464
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      public-cms/cron.php

+ 3 - 1
public-cms/cron.php

@@ -13,6 +13,8 @@ if(cron::ifLocalHost()){
     cron::sendMailAssignDocument();
 
 } else {
-    header('HTTP/1.1 403 Forbidden');
+    header('HTTP/1.0 401 Unauthorized');
+    header('Content-Type: text/html; charset=utf-8');
     echo json_encode(["403 Accès Interdit"]);
+    exit();
 }