Skip to content
Permalink
Browse files

media: Use + to create the Type string

  • Loading branch information...
bep committed Oct 6, 2019
1 parent c466b88 commit 64ec8c89049461c4731b23c491fb41e00a09a8b2
Showing with 2 additions and 3 deletions.
  1. +2 −3 media/mediaType.go
@@ -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 {

0 comments on commit 64ec8c8

Please sign in to comment.
You can’t perform that action at this time.