From 97693e36b9b0bf14e51bcf25daf6e37f85e439ec Mon Sep 17 00:00:00 2001 From: kriss <462679766@qq.com> Date: Wed, 20 Jul 2022 11:26:43 +0800 Subject: [PATCH] fix: Content-Type error --- src/Traits/LogReaderControllerTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', ]); }