hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 64ec8c89049461c4731b23c491fb41e00a09a8b2
parent c466b88c998bc99e5d26e41cb67d87e1d4b976f5
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sun,  6 Oct 2019 21:22:10 +0200

media: Use + to create the Type string

Diffstat:
Mmedia/mediaType.go | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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 {