From 040740c05d39aeee7a0e65a18af34e73a910b83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Mon, 2 Aug 2010 19:04:53 -0430 Subject: [PATCH] Changing the order for comparisson checking on some types, when looking for a mime type --- cake/libs/cake_response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/cake_response.php b/cake/libs/cake_response.php index 999c20298..0bebf3ad9 100644 --- a/cake/libs/cake_response.php +++ b/cake/libs/cake_response.php @@ -107,7 +107,7 @@ class CakeResponse { 'ico' => 'image/vnd.microsoft.icon', 'ips' => 'application/x-ipscript', 'ipx' => 'application/x-ipix', - 'js' => 'application/x-javascript', + 'js' => 'text/javascript', 'latex' => 'application/x-latex', 'lha' => 'application/octet-stream', 'lsp' => 'application/x-lisp', @@ -196,8 +196,8 @@ class CakeResponse { 'f90' => 'text/plain', 'h' => 'text/plain', 'hh' => 'text/plain', - 'htm' => array('text/html', '*/*'), 'html' => array('text/html', '*/*'), + 'htm' => array('text/html', '*/*'), 'm' => 'text/plain', 'rtf' => 'text/rtf', 'rtx' => 'text/richtext',