Handle empty cover art ID in subsonic API

This commit is contained in:
Deluan
2022-12-20 11:34:01 -05:00
committed by Deluan Quintão
parent 0da27e8a3f
commit abd3274250
3 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ func (api *Router) getPlaceHolderAvatar(w http.ResponseWriter, r *http.Request)
}
func (api *Router) GetCoverArt(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
id := utils.ParamStringDefault(r, "id", "non-existent")
id := utils.ParamString(r, "id")
size := utils.ParamInt(r, "size", 0)
w.Header().Set("cache-control", "public, max-age=315360000")