From: Robin Appelman Date: Sat, 31 Mar 2012 14:20:32 +0000 (+0200) Subject: make sure output buffering is dissabled when using eventsource X-Git-Tag: v4.0.0beta~392^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b72d7f1ab324aa5669a1cce69564ff7b10551084;p=nextcloud-server.git make sure output buffering is dissabled when using eventsource --- diff --git a/lib/eventsource.php b/lib/eventsource.php index 523f72403c3..dc28616c2dd 100644 --- a/lib/eventsource.php +++ b/lib/eventsource.php @@ -32,6 +32,7 @@ class OC_EventSource{ private $fallBackId=0; public function __construct(){ + @ob_end_clean(); header('Cache-Control: no-cache'); $this->fallback=isset($_GET['fallback']) and $_GET['fallback']=='true'; if($this->fallback){