Skip to content
Snippets Groups Projects
Commit 555c892d authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #5236 force mime_type to text/plain if extension txt

parent 7987ae6a
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,9 @@ if ($viewResourceArr['status'] <> 'ko') {
</html>-->
<?php
} else {
if(strtolower($viewResourceArr['ext']) == 'txt'){
$viewResourceArr['mime_type'] = 'text/plain';
}
header('Pragma: public');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment