summaryrefslogtreecommitdiffstats
path: root/media/mediaType.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-28 00:09:25 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-28 00:09:25 +0200
commitf2fbf0b2ea12f966be4dda6d9f54c67ee1b490bb (patch)
tree3305fc0dec2575989a6655434048b6dd0684b564 /media/mediaType.go
parent492327368848bcf21cfd23d5490bc47b6ea44897 (diff)
media: Add some more relevant MIME types
Diffstat (limited to 'media/mediaType.go')
-rw-r--r--media/mediaType.go13
1 files changed, 8 insertions, 5 deletions
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