media: Use + to create the Type string

This commit is contained in:
Bjørn Erik Pedersen 2019-10-06 21:22:10 +02:00
parent c466b88c99
commit 64ec8c8904

View file

@ -94,10 +94,9 @@ func (m Type) Type() string {
// 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 {