chesterpolo / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Correct mime-types for XML and XSLT [patch] #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
XML and XSLT are currently served as "text/plain".

--- mongoose/mongoose.c 2009-09-07 12:51:14 UTC (rev 8741)
+++ mongoose/mongoose.c 2009-09-07 13:51:18 UTC (rev 8742)
@@ -1855,6 +1855,8 @@
    {".shtm",   5,  "text/html",            9},
    {".shtml",  6,  "text/html",            9},
    {".css",    4,  "text/css",         8},
+   {".xml",    4,  "text/xml",         8},
+   {".xslt",   5,  "application/xml",      15},
    {".js",     3,  "application/x-javascript", 24},
    {".ico",    4,  "image/x-icon",         12},
    {".gif",    4,  "image/gif",            9},

Original issue reported on code.google.com by m...@packi.ch on 7 Sep 2009 at 2:05

GoogleCodeExporter commented 9 years ago
Committed http://code.google.com/p/mongoose/source/detail?r=476
Thanks.

Original comment by valenok on 7 Sep 2009 at 2:36