Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #61 from kardan/master

Added new MIME types
  • Loading branch information...
commit 57f6d12edc3aaaaf8e6bac9b6a9c1d89dae784ba 2 parents 62e460d + 4e6f871
@etrepum etrepum authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/mochiweb_mime.erl
View
22 src/mochiweb_mime.erl
@@ -368,6 +368,28 @@ 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(".otf") ->
+ "font/opentype";
from_extension(_) ->
undefined.
Please sign in to comment.
Something went wrong with that request. Please try again.