Skip to content
This repository
Browse code

update mimetype map

  • Loading branch information...
commit 8a09b3d454886e97d6f13dc57f6a1694469b31a7 1 parent 4db909b
Andy Dawson authored July 03, 2012

Showing 1 changed file with 23 additions and 3 deletions. Show diff stats Hide diff stats

  1. 26  lib/Cake/Network/CakeResponse.php
26  lib/Cake/Network/CakeResponse.php
@@ -114,10 +114,10 @@ class CakeResponse {
114 114
 		'7z' => 'application/x-7z-compressed',
115 115
 		'hdf' => 'application/x-hdf',
116 116
 		'hqx' => 'application/mac-binhex40',
117  
-		'ico' => 'image/vnd.microsoft.icon',
  117
+		'ico' => 'image/x-icon',
118 118
 		'ips' => 'application/x-ipscript',
119 119
 		'ipx' => 'application/x-ipix',
120  
-		'js' => 'text/javascript',
  120
+		'js' => 'application/javascript',
121 121
 		'latex' => 'application/x-latex',
122 122
 		'lha' => 'application/octet-stream',
123 123
 		'lsp' => 'application/x-lisp',
@@ -169,6 +169,7 @@ class CakeResponse {
169 169
 		'texinfo' => 'application/x-texinfo',
170 170
 		'tr' => 'application/x-troff',
171 171
 		'tsp' => 'application/dsptype',
  172
+		'ttc' => 'font/ttf',
172 173
 		'ttf' => 'font/ttf',
173 174
 		'unv' => 'application/i-deas',
174 175
 		'ustar' => 'application/x-ustar',
@@ -234,6 +235,12 @@ class CakeResponse {
234 235
 		'ogv' => 'video/ogg',
235 236
 		'webm' => 'video/webm',
236 237
 		'mp4' => 'video/mp4',
  238
+		'm4v' => 'video/mp4',
  239
+		'f4v' => 'video/mp4',
  240
+		'f4p' => 'video/mp4',
  241
+		'm4a' => 'audio/mp4',
  242
+		'f4a' => 'audio/mp4',
  243
+		'f4b' => 'audio/mp4',
237 244
 		'gif' => 'image/gif',
238 245
 		'ief' => 'image/ief',
239 246
 		'jpe' => 'image/jpeg',
@@ -262,7 +269,7 @@ class CakeResponse {
262 269
 		'mime' => 'www/mime',
263 270
 		'pdb' => 'chemical/x-pdb',
264 271
 		'xyz' => 'chemical/x-pdb',
265  
-		'javascript' => 'text/javascript',
  272
+		'javascript' => 'application/javascript',
266 273
 		'form' => 'application/x-www-form-urlencoded',
267 274
 		'file' => 'multipart/form-data',
268 275
 		'xhtml'	=> array('application/xhtml+xml', 'application/xhtml', 'text/xhtml'),
@@ -273,6 +280,19 @@ class CakeResponse {
273 280
 		'wml' => 'text/vnd.wap.wml',
274 281
 		'wmlscript' => 'text/vnd.wap.wmlscript',
275 282
 		'wbmp' => 'image/vnd.wap.wbmp',
  283
+		'woff' => 'application/x-font-woff',
  284
+		'webp' => 'image/webp',
  285
+		'appcache' => 'text/cache-manifest',
  286
+		'manifest' => 'text/cache-manifest',
  287
+		'htc' => 'text/x-component',
  288
+		'rdf' => 'application/xml',
  289
+		'crx' => 'application/x-chrome-extension',
  290
+		'oex' => 'application/x-opera-extension',
  291
+		'xpi' => 'application/x-xpinstall',
  292
+		'safariextz' => 'application/octet-stream',
  293
+		'webapp' => 'application/x-web-app-manifest+json',
  294
+		'vcf' => 'text/x-vcard',
  295
+		'vtt' => 'text/vtt',
276 296
 	);
277 297
 
278 298
 /**

0 notes on commit 8a09b3d

Please sign in to comment.
Something went wrong with that request. Please try again.