ソースを参照

Add Content-Type header for error page

Visman 4 年 前
コミット
c110cd65ce
1 ファイル変更1 行追加0 行削除
  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>