summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-11 21:02:57 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-11 21:02:57 -0700
commit524554c65b363adfd264c66dafe0671ba5115a1f (patch)
tree7bd6bc39cf01d30c56eb69c6e6ca9616fce8bcea /modules
parenta94bb197987deeee4b0046fb6566510080e087f6 (diff)
Send back the content length of files. This fixes streaming movies. Fixes ticket #974.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/controllers/file_proxy.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php
index d4e0d4c7..b17310c4 100644
--- a/modules/gallery/controllers/file_proxy.php
+++ b/modules/gallery/controllers/file_proxy.php
@@ -116,6 +116,8 @@ class File_Proxy_Controller extends Controller {
throw new Kohana_404_Exception();
}
+ header("Content-Length: " . filesize($file));
+
header("Pragma:");
// Check that the content hasn't expired or it wasn't changed since cached
expires::check(2592000, $item->updated);