summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-08-20 12:24:05 +0800
committerTim Almdal <tnalmdal@shaw.ca>2009-08-20 12:26:47 +0800
commit2da7f937840b79b65bacb96e8dad06f2e7d41305 (patch)
tree69b9e3c400ec2d83cc15ab6428675162cdb35d65
parentb989383fe6f875d48c48c4b5481299ddc70e5766 (diff)
Fix the setting of the mime type header. as per
http://gallery.menalto.com/node/90306 Thanks rWatcher Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
-rw-r--r--modules/gallery/controllers/file_proxy.php2
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);