ref: 64ec8c89049461c4731b23c491fb41e00a09a8b2
parent: c466b88c998bc99e5d26e41cb67d87e1d4b976f5
author: Bjørn Erik Pedersen <[email protected]>
date: Sun Oct 6 17:22:10 EDT 2019
media: Use + to create the Type string
--- a/media/mediaType.go
+++ b/media/mediaType.go
@@ -94,10 +94,9 @@
// image/svg+xml
// text/css
if m.mimeSuffix != "" {
- return fmt.Sprintf("%s/%s+%s", m.MainType, m.SubType, m.mimeSuffix)
+ return m.MainType + "/" + m.SubType + "+" + m.mimeSuffix
}
- return fmt.Sprintf("%s/%s", m.MainType, m.SubType)
-
+ return m.MainType + "/" + m.SubType
}
func (m Type) String() string {