hugo

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

git clone git://git.shimmy1996.com/hugo.git
commit 6acbe41f0abaaa63478f24ad4111829be993bbfe
parent e321306c6855974478ae14ece84d42d6f6784f18
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 31 Jul 2017 16:53:13 +0200

media: Add missing JSON tags to Type

See https://github.com/gohugoio/hugoDocs/issues/114

Diffstat:
Mmedia/mediaType.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/media/mediaType.go b/media/mediaType.go
@@ -192,8 +192,8 @@ func DecodeTypes(maps ...map[string]interface{}) (Types, error) {
 func (t Type) MarshalJSON() ([]byte, error) {
 	type Alias Type
 	return json.Marshal(&struct {
-		Type   string
-		String string
+		Type   string `json:"type"`
+		String string `json:"string"`
 		Alias
 	}{
 		Type:   t.Type(),