From e38a870e712be22693f4c5b45e3e9bb9a2ecf6f3 Mon Sep 17 00:00:00 2001 From: mirzaev Date: Tue, 4 Nov 2025 10:55:58 +0700 Subject: [PATCH] controller HTML response --- author/project/system/controllers/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/author/project/system/controllers/index.php b/author/project/system/controllers/index.php index ac29f02..c4102ad 100755 --- a/author/project/system/controllers/index.php +++ b/author/project/system/controllers/index.php @@ -41,8 +41,8 @@ final class index extends core */ public function index(): null { - if (str_contains($$this->request->headers['accept'], content::any->value)) { - // Request for any response + if (str_contains($$this->request->headers['accept'] ?? '', content::html->value)) { + // Request for HTML response // Render page $$page = $$this->view->render('index.html');