Changing the order for comparisson checking on some types, when looking for a mime type

This commit is contained in:
José Lorenzo Rodríguez 2010-08-02 19:04:53 -04:30
parent 87eb1ec697
commit 040740c05d

View file

@ -107,7 +107,7 @@ class CakeResponse {
'ico' => 'image/vnd.microsoft.icon', 'ico' => 'image/vnd.microsoft.icon',
'ips' => 'application/x-ipscript', 'ips' => 'application/x-ipscript',
'ipx' => 'application/x-ipix', 'ipx' => 'application/x-ipix',
'js' => 'application/x-javascript', 'js' => 'text/javascript',
'latex' => 'application/x-latex', 'latex' => 'application/x-latex',
'lha' => 'application/octet-stream', 'lha' => 'application/octet-stream',
'lsp' => 'application/x-lisp', 'lsp' => 'application/x-lisp',
@ -196,8 +196,8 @@ class CakeResponse {
'f90' => 'text/plain', 'f90' => 'text/plain',
'h' => 'text/plain', 'h' => 'text/plain',
'hh' => 'text/plain', 'hh' => 'text/plain',
'htm' => array('text/html', '*/*'),
'html' => array('text/html', '*/*'), 'html' => array('text/html', '*/*'),
'htm' => array('text/html', '*/*'),
'm' => 'text/plain', 'm' => 'text/plain',
'rtf' => 'text/rtf', 'rtf' => 'text/rtf',
'rtx' => 'text/richtext', 'rtx' => 'text/richtext',