diff --git a/src/Traits/LogReaderControllerTrait.php b/src/Traits/LogReaderControllerTrait.php index 358fca1..ab63cf5 100644 --- a/src/Traits/LogReaderControllerTrait.php +++ b/src/Traits/LogReaderControllerTrait.php @@ -46,7 +46,7 @@ public function view() } return new Response(file_get_contents($file), 200, [ - 'Content-Type' => 'text/event-stream', + 'Content-Type' => 'text/plain', ]); } @@ -58,7 +58,7 @@ public function tail() $result = shell_exec("tail -n {$line} {$file}"); return new Response($result, 200, [ - 'Content-Type' => 'text/event-stream', + 'Content-Type' => 'text/plain', ]); }