소스 검색

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>