[quote='kilishan' pid='360708' dateline='1546488262']
You should always use the Response object that is in every controller to set the headers instead of setting them directly now. Something like:
Thanks for your reply. I will try it.
You should always use the Response object that is in every controller to set the headers instead of setting them directly now. Something like:
Code:
$this->response->setHeader('Content-Type', 'text/event-stream');