diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/application/models/file_mod.php | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |