From 80f076f38579d67343719d641ba0f154e354053b Mon Sep 17 00:00:00 2001 From: MorganDawe Date: Thu, 31 Jul 2014 16:15:34 +0000 Subject: [PATCH] Added application/rdf for file extension rng in mimedetect. --- includes/datastream.inc | 2 -- includes/mime_detect.inc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/datastream.inc b/includes/datastream.inc index ba2872c2..eabb9f94 100644 --- a/includes/datastream.inc +++ b/includes/datastream.inc @@ -54,7 +54,6 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F // Browsers will not append all extensions. $mime_detect = new MimeDetect(); $extension = '.' . $mime_detect->getExtension($datastream->mimetype); - // Prevent adding on a duplicate extension. $label = $datastream->label; $extension_length = strlen($extension); @@ -65,7 +64,6 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F if ($duplicate_extension_position === FALSE) { $filename .= $extension; } - header("Content-Disposition: attachment; filename=\"$filename\""); } diff --git a/includes/mime_detect.inc b/includes/mime_detect.inc index c1be1b92..93066bf1 100644 --- a/includes/mime_detect.inc +++ b/includes/mime_detect.inc @@ -226,6 +226,7 @@ class MimeDetect { "tar" => "application/x-tar", "gtar" => "application/x-gtar", "zip" => "application/x-zip", + "rng" => "application/xml", // others: 'bin' => 'application/octet-stream', );