mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
fix spell of contentType
This commit is contained in:
parent
81e6a56543
commit
bfde2d136f
1 changed files with 1 additions and 1 deletions
|
@ -1281,7 +1281,7 @@ class CakeResponse {
|
||||||
$agent = env('HTTP_USER_AGENT');
|
$agent = env('HTTP_USER_AGENT');
|
||||||
|
|
||||||
if (preg_match('%Opera(/| )([0-9].[0-9]{1,2})%', $agent)) {
|
if (preg_match('%Opera(/| )([0-9].[0-9]{1,2})%', $agent)) {
|
||||||
$contentType = 'application/octetstream';
|
$contentType = 'application/octet-stream';
|
||||||
} elseif (preg_match('/MSIE ([0-9].[0-9]{1,2})/', $agent)) {
|
} elseif (preg_match('/MSIE ([0-9].[0-9]{1,2})/', $agent)) {
|
||||||
$contentType = 'application/force-download';
|
$contentType = 'application/force-download';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue