mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 19:16:16 +00:00
Merge pull request #1260 from DiegoMax/2.4
Patched CakeResponse's MapType() to increase performance by reducing hun...
This commit is contained in:
commit
6b0ea6ac76
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue