Skip to content

Commit a08b19f

Browse files
committed
fix🐛 headers read-only
1 parent 99ba7eb commit a08b19f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/controllers/DefaultController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public function actionTail($slug, $line = 100, $stamp = null)
164164
$result = shell_exec("tail -n {$line} {$log->fileName}");
165165

166166
Yii::$app->response->format = Response::FORMAT_RAW;
167-
Yii::$app->response->headers['Content-Type'] = 'text/event-stream';
167+
Yii::$app->response->headers->set('Content-Type', 'text/event-stream');
168168
return $result;
169169
} else {
170170
throw new NotFoundHttpException('Log not found.');

0 commit comments

Comments
 (0)