From f2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 28 Mar 2017 00:09:25 +0200 Subject: media: Add some more relevant MIME types --- media/mediaType.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'media/mediaType.go') diff --git a/media/mediaType.go b/media/mediaType.go index 07dbcc211..f6597fdb6 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -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 -- cgit v1.2.3