diff --git a/cmd/apiserver/main.go b/cmd/apiserver/main.go index 6fcd64c..58a5a20 100644 --- a/cmd/apiserver/main.go +++ b/cmd/apiserver/main.go @@ -182,6 +182,12 @@ func (h Handler) Meta(resp http.ResponseWriter, path []string) { } cached: + if meta == nil { + // make output useful for nil maps + fmt.Fprint(resp, "[]") + return + } + encoder := json.NewEncoder(resp) if len(path) > 1 {