Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update mimetype map

  • Loading branch information...
commit 8a09b3d454886e97d6f13dc57f6a1694469b31a7 1 parent 4db909b
Andy Dawson AD7six authored
Showing with 23 additions and 3 deletions.
  1. +23 −3 lib/Cake/Network/CakeResponse.php
26 lib/Cake/Network/CakeResponse.php
View
@@ -114,10 +114,10 @@ class CakeResponse {
'7z' => 'application/x-7z-compressed',
'hdf' => 'application/x-hdf',
'hqx' => 'application/mac-binhex40',
- 'ico' => 'image/vnd.microsoft.icon',
+ 'ico' => 'image/x-icon',
'ips' => 'application/x-ipscript',
'ipx' => 'application/x-ipix',
- 'js' => 'text/javascript',
+ 'js' => 'application/javascript',
'latex' => 'application/x-latex',
'lha' => 'application/octet-stream',
'lsp' => 'application/x-lisp',
@@ -169,6 +169,7 @@ class CakeResponse {
'texinfo' => 'application/x-texinfo',
'tr' => 'application/x-troff',
'tsp' => 'application/dsptype',
+ 'ttc' => 'font/ttf',
'ttf' => 'font/ttf',
'unv' => 'application/i-deas',
'ustar' => 'application/x-ustar',
@@ -234,6 +235,12 @@ class CakeResponse {
'ogv' => 'video/ogg',
'webm' => 'video/webm',
'mp4' => 'video/mp4',
+ 'm4v' => 'video/mp4',
+ 'f4v' => 'video/mp4',
+ 'f4p' => 'video/mp4',
+ 'm4a' => 'audio/mp4',
+ 'f4a' => 'audio/mp4',
+ 'f4b' => 'audio/mp4',
'gif' => 'image/gif',
'ief' => 'image/ief',
'jpe' => 'image/jpeg',
@@ -262,7 +269,7 @@ class CakeResponse {
'mime' => 'www/mime',
'pdb' => 'chemical/x-pdb',
'xyz' => 'chemical/x-pdb',
- 'javascript' => 'text/javascript',
+ 'javascript' => 'application/javascript',
'form' => 'application/x-www-form-urlencoded',
'file' => 'multipart/form-data',
'xhtml' => array('application/xhtml+xml', 'application/xhtml', 'text/xhtml'),
@@ -273,6 +280,19 @@ class CakeResponse {
'wml' => 'text/vnd.wap.wml',
'wmlscript' => 'text/vnd.wap.wmlscript',
'wbmp' => 'image/vnd.wap.wbmp',
+ 'woff' => 'application/x-font-woff',
+ 'webp' => 'image/webp',
+ 'appcache' => 'text/cache-manifest',
+ 'manifest' => 'text/cache-manifest',
+ 'htc' => 'text/x-component',
+ 'rdf' => 'application/xml',
+ 'crx' => 'application/x-chrome-extension',
+ 'oex' => 'application/x-opera-extension',
+ 'xpi' => 'application/x-xpinstall',
+ 'safariextz' => 'application/octet-stream',
+ 'webapp' => 'application/x-web-app-manifest+json',
+ 'vcf' => 'text/x-vcard',
+ 'vtt' => 'text/vtt',
);
/**
Please sign in to comment.
Something went wrong with that request. Please try again.