Fix the setting of the mime type header. as per

http://gallery.menalto.com/node/90306
Thanks rWatcher
This commit is contained in:
Tim Almdal
2009-08-19 21:24:05 -07:00
parent bfcbb60039
commit c85df82fde
+1 -1
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);