aboutsummaryrefslogtreecommitdiffhomepage
path: root/media
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-10-06 21:22:10 +0200
committerBjørn Erik Pedersen <[email protected]>2019-10-06 22:20:58 +0200
commit64ec8c89049461c4731b23c491fb41e00a09a8b2 (patch)
treea46ba333d7b7d53815546b75b8b86aaff7d4b046 /media
parentc466b88c998bc99e5d26e41cb67d87e1d4b976f5 (diff)
downloadhugo-64ec8c89049461c4731b23c491fb41e00a09a8b2.tar.gz
hugo-64ec8c89049461c4731b23c491fb41e00a09a8b2.zip
media: Use + to create the Type string
Diffstat (limited to 'media')
-rw-r--r--media/mediaType.go5
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 {