Skip to content

Commit

Permalink
media: Use + to create the Type string
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 6, 2019
1 parent c466b88 commit 64ec8c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions media/mediaType.go
Expand Up @@ -94,10 +94,9 @@ func (m Type) Type() string {
// image/svg+xml // image/svg+xml
// text/css // text/css
if m.mimeSuffix != "" { 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 { func (m Type) String() string {
Expand Down

0 comments on commit 64ec8c8

Please sign in to comment.