From 1106c528b213f9f58f4b2d9be60f78ca8067236e Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 21 Jan 2013 15:14:04 +0200 Subject: [ci skip] Add text/plain as a valid MIME for js,css,*html,xml --- application/config/mimes.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'application/config') diff --git a/application/config/mimes.php b/application/config/mimes.php index cced3ee02..124e4a436 100644 --- a/application/config/mimes.php +++ b/application/config/mimes.php @@ -73,7 +73,7 @@ return array( 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', - 'js' => 'application/x-javascript', + 'js' => array('application/x-javascript', 'text/plain'), 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', @@ -104,16 +104,16 @@ return array( 'png' => array('image/png', 'image/x-png'), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', - 'css' => 'text/css', - 'html' => 'text/html', - 'htm' => 'text/html', - 'shtml' => 'text/html', + 'css' => array('text/css', 'text/plain'), + 'html' => array('text/html', 'text/plain'), + 'htm' => array('text/html', 'text/plain'), + 'shtml' => array('text/html', 'text/plain'), 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => array('text/plain', 'text/x-log'), 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', - 'xml' => array('application/xml', 'text/xml'), + 'xml' => array('application/xml', 'text/xml', 'text/plain'), 'xsl' => array('application/xml', 'text/xsl', 'text/xml'), 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', -- cgit v1.2.3-24-g4f1b