Browse Source

Add Content-Type header for error page

Visman 4 năm trước cách đây
mục cha
commit
c110cd65ce
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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>