Skip to content

Commit

Permalink
feature: Content-Type use utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss authored Jul 20, 2022
1 parent 97693e3 commit 0cd2ec7
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/plain',
'Content-Type' => 'text/plain; charset=UTF-8',
]);
}

Expand All @@ -58,7 +58,7 @@ public function tail()
$result = shell_exec("tail -n {$line} {$file}");

return new Response($result, 200, [
'Content-Type' => 'text/plain',
'Content-Type' => 'text/plain; charset=UTF-8',
]);
}

Expand Down

0 comments on commit 0cd2ec7

Please sign in to comment.