Fixes a stupid bug

================================================================================
=========================        B I G   H I N T       =========================
================================================================================

                              Y O U   N E E D   T D D
This commit is contained in:
2016-01-22 18:17:19 +01:00
parent f407c1cf3e
commit 1699bca7cd

View File

@@ -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")