This commit is contained in:
iVampireSP.com 2023-02-13 15:27:24 +08:00
parent adc461a580
commit d958828608
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -82,6 +82,7 @@ public function stream(): StreamedResponse
flush();
}, false);
});
$response->headers->set('Content-Type', 'text/event-stream');
$response->headers->set('X-Accel-Buffering', 'no');
$response->headers->set('Cache-Control', 'no-cache');