Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added MIME types for eot, m4v, svg, svgz, ttc, ttf, vcf, webm, webp a…

…nd woff files.
  • Loading branch information...
commit 29d15d50871fc5a08bd4c5e7b5f93a784560d4f4 1 parent 62e460d
@kardan authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 src/mochiweb_mime.erl
View
20 src/mochiweb_mime.erl
@@ -368,6 +368,26 @@ from_extension(".m4a") ->
"audio/mpeg";
from_extension(".csv") ->
"text/csv";
+from_extension(".eot") ->
+ "application/vnd.ms-fontobject";
+from_extension(".m4v") ->
+ "video/mp4";
+from_extension(".svg") ->
+ "image/svg+xml";
+from_extension(".svgz") ->
+ "image/svg+xml";
+from_extension(".ttc") ->
+ "application/x-font-ttf";
+from_extension(".ttf") ->
+ "application/x-font-ttf";
+from_extension(".vcf") ->
+ "text/x-vcard";
+from_extension(".webm") ->
+ "video/web";
+from_extension(".webp") ->
+ "image/web";
+from_extension(".woff") ->
+ "application/x-font-woff";
from_extension(_) ->
undefined.
Please sign in to comment.
Something went wrong with that request. Please try again.