controller HTML response
This commit is contained in:
@@ -41,8 +41,8 @@ final class index extends core
|
|||||||
*/
|
*/
|
||||||
public function index(): null
|
public function index(): null
|
||||||
{
|
{
|
||||||
if (str_contains($$this->request->headers['accept'], content::any->value)) {
|
if (str_contains($$this->request->headers['accept'] ?? '', content::html->value)) {
|
||||||
// Request for any response
|
// Request for HTML response
|
||||||
|
|
||||||
// Render page
|
// Render page
|
||||||
$$page = $$this->view->render('index.html');
|
$$page = $$this->view->render('index.html');
|
||||||
|
|||||||
Reference in New Issue
Block a user