Skip to content

Commit 97693e3

Browse files
authored
fix: Content-Type error
1 parent c4df4a0 commit 97693e3

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/event-stream',
49+
'Content-Type' => 'text/plain',
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/event-stream',
61+
'Content-Type' => 'text/plain',
6262
]);
6363
}
6464

0 commit comments

Comments
 (0)