From 1699bca7cd6ffa23bb7c79c8a621163156392266 Mon Sep 17 00:00:00 2001 From: Alexandre Tuleu Date: Fri, 22 Jan 2016 18:17:19 +0100 Subject: [PATCH] Fixes a stupid bug ================================================================================ ========================= B I G H I N T ========================= ================================================================================ Y O U N E E D T D D --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index fd33d4e..009caca 100644 --- a/router.go +++ b/router.go @@ -69,7 +69,7 @@ func (a *appData) buildRouter() http.Handler { album.CoverURL = fmt.Sprintf("/covers/%d%s", album.ID, ext) enc := json.NewEncoder(w) - if err := enc.Encode(a); err != nil { + if err := enc.Encode(album); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } })).Methods("GET")