|Summary:||MIME types for m4a & m4v files|
|Product:||Tomcat 7||Reporter:||Cédrik LIME <cedrik.lime>|
|Component:||Catalina||Assignee:||Tomcat Developers Mailing List <dev>|
|Attachments:||Patch for additional common mpeg 4 mime types|
Description Cédrik LIME 2011-04-11 11:08:19 UTC
Created attachment 26874 [details] Patch for additional common mpeg 4 mime types Tomcat correctly serves MPEG 4 files with a standardized file extension of .mp4, as video/mp4. Common but non-standard mpeg4 files also use of the extensions .m4a and .m4v, which are unknown to Tomcat and are therefore served without any "Content-Type" header. This behaviour leads Internet Explorer to display garbage when following a link to such a file. This patch adds the correct MIME type for MPEG 4 files with extensions m4a, m4b, m4r and m4v. (It omits the m4p extension, which is both not widely used, and of limited interest since the data is encrypted.) References: http://tools.ietf.org/html/rfc4337 http://en.wikipedia.org/wiki/MPEG-4_Part_14#.MP4_versus_.M4A_filename_extensions
Comment 1 Mark Thomas 2011-04-16 18:54:09 UTC
Fixed in 7.0.x and will be included in 7.0.13 onwards. Thanks for the patch.