From d3fc4c69472e0a90e06740ab202be1732739d9a5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Mar 2010 17:57:01 +0100 Subject: switch raw and plain content-type Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/application/models/file_mod.php') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 4ab4fc32c..bc7168e27 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -180,9 +180,9 @@ class File_mod extends Model { echo $this->load->view('file/html_footer', $data, true); } else { if ($mode == 'plain') { - header("Content-Type: ".$type."\n"); - } else { header("Content-Type: text/plain\n"); + } else { + header("Content-Type: ".$type."\n"); } header("Content-disposition: inline; filename=\"".$filedata['filename']."\"\n"); header("Content-Length: ".filesize($file)."\n"); -- cgit v1.2.3-24-g4f1b