mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
media: Use + to create the Type string
This commit is contained in:
parent
c466b88c99
commit
64ec8c8904
1 changed files with 2 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue