• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set header content-type text/event-stream?

#3
[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:

Code:
$this->response->setHeader('Content-Type', 'text/event-stream');
Thanks for your reply. I will try it.
Reply


Messages In This Thread
RE: How to set header content-type text/event-stream? - by titounnes - 01-03-2019, 12:07 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.