From fd74e43afaf50668530bcd9058bde641cc0a205b Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Tue, 16 Aug 2011 14:34:42 +0200
Subject: [PATCH] fix expire header for media player

---
 apps/media/ajax/api.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index 46f18b848e..a9bd4f745a 100644
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -129,8 +129,7 @@ if($arguments['action']){
 			// calc the string in GMT not localtime and add the offset
 			$expire = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
 			//output the HTTP header
-			Header($expire);
-			header('Expires: 0');
+			header($expire);
 			header('Cache-Control: max-age=3600, must-revalidate');
 			header('Pragma: public');
 			header('Accept-Ranges: bytes');
-- 
GitLab