diff options
Diffstat (limited to 'media/mediaType.go')
-rw-r--r-- | media/mediaType.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index baf7b7e27..b28ca0d8f 100644 --- a/media/mediaType.go +++ b/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 { |