Skip to content

Commit

Permalink
Added missing file extension to mime type mapping for files used with…
Browse files Browse the repository at this point in the history
… html5 audio/video tags
  • Loading branch information
ADmad committed Feb 5, 2012
1 parent 49a48ce commit 6f09f5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Cake/Network/CakeResponse.php
Expand Up @@ -187,13 +187,16 @@ class CakeResponse {
'mp3' => 'audio/mpeg',
'mpga' => 'audio/mpeg',
'ogg' => 'audio/ogg',
'oga' => 'audio/ogg',
'spx' => 'audio/ogg',
'ra' => 'audio/x-realaudio',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'snd' => 'audio/basic',
'tsi' => 'audio/TSP-audio',
'wav' => 'audio/x-wav',
'aac' => 'audio/aac',
'asc' => 'text/plain',
'c' => 'text/plain',
'cc' => 'text/plain',
Expand Down Expand Up @@ -225,6 +228,9 @@ class CakeResponse {
'qt' => 'video/quicktime',
'viv' => 'video/vnd.vivo',
'vivo' => 'video/vnd.vivo',
'ogv' => 'video/ogg',
'webm' => 'video/webm',
'mp4' => 'video/mp4',
'gif' => 'image/gif',
'ief' => 'image/ief',
'jpe' => 'image/jpeg',
Expand Down

0 comments on commit 6f09f5d

Please sign in to comment.