From b72d7f1ab324aa5669a1cce69564ff7b10551084 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Sat, 31 Mar 2012 16:20:32 +0200
Subject: [PATCH] make sure output buffering is dissabled when using
 eventsource

---
 lib/eventsource.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/eventsource.php b/lib/eventsource.php
index 523f72403c..dc28616c2d 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){
-- 
GitLab