media: Add some more relevant MIME types

This commit is contained in:
Bjørn Erik Pedersen
2017-03-28 00:09:25 +02:00
parent 4923273688
commit f2fbf0b2ea
2 changed files with 30 additions and 23 deletions

View File

@@ -47,11 +47,14 @@ func (m Type) String() string {
}
var (
CalendarType = Type{"text", "calendar", "ics"}
CSSType = Type{"text", "css", "css"}
HTMLType = Type{"text", "html", "html"}
JSONType = Type{"application", "json", "json"}
RSSType = Type{"application", "rss", "xml"}
CalendarType = Type{"text", "calendar", "ics"}
CSSType = Type{"text", "css", "css"}
HTMLType = Type{"text", "html", "html"}
JavascriptType = Type{"application", "javascript", "js"}
JSONType = Type{"application", "json", "json"}
RSSType = Type{"application", "rss", "xml"}
XMLType = Type{"application", "xml", "xml"}
TextType = Type{"text", "plain", "txt"}
)
// TODO(bep) output mime.AddExtensionType