diff options
Diffstat (limited to 'media/mediaType.go')
-rw-r--r-- | media/mediaType.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index 9f7673ecc..01a6b9582 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -135,6 +135,8 @@ var ( XMLType = Type{MainType: "application", SubType: "xml", Suffixes: []string{"xml"}, Delimiter: defaultDelimiter} SVGType = Type{MainType: "image", SubType: "svg", mimeSuffix: "xml", Suffixes: []string{"svg"}, Delimiter: defaultDelimiter} TextType = Type{MainType: "text", SubType: "plain", Suffixes: []string{"txt"}, Delimiter: defaultDelimiter} + TOMLType = Type{MainType: "application", SubType: "toml", Suffixes: []string{"toml"}, Delimiter: defaultDelimiter} + YAMLType = Type{MainType: "application", SubType: "yaml", Suffixes: []string{"yaml", "yml"}, Delimiter: defaultDelimiter} OctetType = Type{MainType: "application", SubType: "octet-stream"} ) @@ -154,6 +156,8 @@ var DefaultTypes = Types{ SVGType, TextType, OctetType, + YAMLType, + TOMLType, } func init() { |