stany.ferer hace 1 año
padre
commit
038b0f1464
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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();
 }