Skip to content

Commit

Permalink
fix spell of contentType
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghal committed Oct 27, 2013
1 parent 81e6a56 commit bfde2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/CakeResponse.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1281,7 +1281,7 @@ public function file($path, $options = array()) {
$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';
} }
Expand Down

0 comments on commit bfde2d1

Please sign in to comment.