Author: Paolo Lulli <paolo@lulli.net>
Flatten map in response
server/rest/outputs.go | 3 ++-
diff --git a/server/rest/outputs.go b/server/rest/outputs.go index b6d65c80a97d1acc2af3980f0fb17798204704fe..281617b71b1f2bb9907625ef5474627b3a82c4f7 100644 --- a/server/rest/outputs.go +++ b/server/rest/outputs.go @@ -7,6 +7,7 @@ formatted := false if formatted { c.IndentedJSON(status, h) } else { - c.JSON(status, h) + //c.JSON(status, h) + c.String(status, "%v", h) } }