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',
'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',