From c65c995663245002165fd31462a501b139190e0f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 11 Aug 2016 22:28:12 +0100 Subject: [PATCH] just show items --- directory/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/directory/file.go b/directory/file.go index c98b2e79..03cadf02 100644 --- a/directory/file.go +++ b/directory/file.go @@ -227,7 +227,7 @@ func (i *Info) serveListing(w http.ResponseWriter, r *http.Request, c *config.Co } if strings.Contains(r.Header.Get("Accept"), "application/json") { - marsh, err := json.Marshal(listing) + marsh, err := json.Marshal(listing.Items) if err != nil { return http.StatusInternalServerError, err }