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>
This commit is contained in:
Tim Almdal
2009-08-20 12:24:05 +08:00
parent b989383fe6
commit 2da7f93784

View File

@@ -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);