diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-19 21:24:05 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-08-19 21:24:05 -0700 |
commit | c85df82fde97b9428e61e25d9de9d512f415ed68 (patch) | |
tree | f878e2ac85528aa7c21021fba4420052619ae092 | |
parent | bfcbb600394c33b9cc176d8e0ec4293e1e22620a (diff) |
Fix the setting of the mime type header. as per
http://gallery.menalto.com/node/90306
Thanks rWatcher
-rw-r--r-- | modules/gallery/controllers/file_proxy.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/file_proxy.php b/modules/gallery/controllers/file_proxy.php index a85f0a85..8cb90c50 100644 --- a/modules/gallery/controllers/file_proxy.php +++ b/modules/gallery/controllers/file_proxy.php @@ -119,7 +119,7 @@ class File_Proxy_Controller extends Controller { if (in_array($item->mime_type, array("video/x-flv", "video/mp4"))) { header("Content-type: image/jpeg"); } else { - print("Content-Type: $item->mime_type"); + header("Content-Type: $item->mime_type"); } Kohana::close_buffers(false); |