Explorar el Código

Add Content-Type header for error page

Visman hace 4 años
padre
commit
c110cd65ce
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Core/ErrorHandler.php

+ 1 - 0
app/Core/ErrorHandler.php

@@ -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>