Skip to content

Commit 0cd2ec7

Browse files
authored
feature: Content-Type use utf-8
1 parent 97693e3 commit 0cd2ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/LogReaderControllerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function view()
4646
}
4747

4848
return new Response(file_get_contents($file), 200, [
49-
'Content-Type' => 'text/plain',
49+
'Content-Type' => 'text/plain; charset=UTF-8',
5050
]);
5151
}
5252

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

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

0 commit comments

Comments
 (0)