lib/nitcorn: add some media types
authorAlexandre Terrasa <alexandre@moz-code.org>
Sun, 12 Feb 2017 03:13:18 +0000 (22:13 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Sun, 12 Feb 2017 03:13:18 +0000 (22:13 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/nitcorn/media_types.nit

index 305f314..49b6daa 100644 (file)
@@ -37,6 +37,7 @@ class MediaTypes
                types["htm"]        = "text/html"
                types["shtml"]      = "text/html"
                types["css"]        = "text/css"
+               types["csv"]        = "text/csv"
                types["xml"]        = "text/xml"
                types["rss"]        = "text/xml"
                types["gif"]        = "image/gif"
@@ -50,6 +51,7 @@ class MediaTypes
                types["ico"]        = "image/x-icon"
                types["jng"]        = "image/x-jng"
                types["wbmp"]       = "image/vnd.wap.wbmp"
+               types["gz"]         = "application/gzip"
                types["jar"]        = "application/java-archive"
                types["war"]        = "application/java-archive"
                types["ear"]        = "application/java-archive"