Permalink
Browse files

Added missing file extension to mime type mapping for files used with…

… html5 audio/video tags
  • Loading branch information...
1 parent 49a48ce commit 6f09f5dfc8c1e4b403697b58510baa5d6681984e @ADmad ADmad committed Feb 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Cake/Network/CakeResponse.php
@@ -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',
@@ -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',

0 comments on commit 6f09f5d

Please sign in to comment.