summaryrefslogtreecommitdiffstats
path: root/media/mediaType.go
diff options
context:
space:
mode:
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