nitcorn: add media types for web fonts.
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 3 Aug 2015 21:18:19 +0000 (17:18 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 3 Aug 2015 21:18:19 +0000 (17:18 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/nitcorn/media_types.nit

index e16798e..73c9626 100644 (file)
@@ -96,6 +96,12 @@ class MediaTypes
                types["asf"]        = "video/x-ms-asf"
                types["mng"]        = "video/x-mng"
                types["apk"]        = "application/vnd.android.package-archive"
+               types["svg"]        = "image/svg+xml"
+               types["ttf"]        = "application/x-font-ttf"
+               types["otf"]        = "application/x-font-opentype"
+               types["eof"]        = "application/vnd.ms-fontobject"
+               types["woff"]       = "application/font-woff"
+               types["woff2"]      = "application/font-woff2"
        end
 end