Add Content-Type header for error page

This commit is contained in:
Visman 2021-01-11 17:21:29 +07:00
parent 6c98e08166
commit c110cd65ce

View file

@ -184,6 +184,7 @@ class ErrorHandler
protected function show(array $error): void
{
\header('HTTP/1.1 500 Internal Server Error');
\header('Content-Type: text/html; charset=utf-8');
echo <<<'EOT'
<!DOCTYPE html>