diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-03-21 17:57:01 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-03-21 17:57:01 +0100 |
commit | d3fc4c69472e0a90e06740ab202be1732739d9a5 (patch) | |
tree | 60945dd931e4b1ab8c04f2d248a304735978979e /system | |
parent | d20200755368790d412d65171d77fcb89d08f1ad (diff) |
switch raw and plain content-type
Signed-off-by: Florian Pritz <bluewind@xssn.at>
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"); |