Merge pull request #1260 from DiegoMax/2.4

Patched CakeResponse's MapType() to increase performance by reducing hun...
This commit is contained in:
Mark Story 2013-05-01 06:53:23 -07:00
commit 6b0ea6ac76

View file

@ -717,9 +717,7 @@ class CakeResponse {
}
foreach ($this->_mimeTypes as $alias => $types) {
if (is_array($types) && in_array($ctype, $types)) {
return $alias;
} elseif (is_string($types) && $types == $ctype) {
if (in_array($ctype, (array)$types)) {
return $alias;
}
}