Makes http request cached for tests
This commit is contained in:
@@ -81,7 +81,7 @@ func (c *AlbumCoverCache) fetch(a *Album) (io.ReadCloser, error) {
|
||||
}
|
||||
f, err := os.Create(c.coverPath(a))
|
||||
if err != nil {
|
||||
resp.Body.Close()
|
||||
closeOrPanic(resp.Body, "GET:"+a.CoverURL)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user