Skip to content

Commit

Permalink
fix: Content-Type error
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss authored Jul 20, 2022
1 parent c4df4a0 commit 97693e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/LogReaderControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function view()
}

return new Response(file_get_contents($file), 200, [
'Content-Type' => 'text/event-stream',
'Content-Type' => 'text/plain',
]);
}

Expand All @@ -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',
]);
}

Expand Down

0 comments on commit 97693e3

Please sign in to comment.