mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-26 15:39:13 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user