Skip to content

Commit

Permalink
Added MIME types for eot, m4v, svg, svgz, ttc, ttf, vcf, webm, webp a…
Browse files Browse the repository at this point in the history
…nd woff files.
  • Loading branch information
kardan committed Sep 30, 2011
1 parent 62e460d commit 29d15d5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/mochiweb_mime.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 29d15d5

Please sign in to comment.