You've already forked top-wallpaper
ALL SORTS OF THINGS
This commit is contained in:
@@ -22,7 +22,9 @@ func Get(c echo.Context) error {
|
||||
|
||||
if err != nil || latestImageVal == "" {
|
||||
c.Logger().Info("Fetching latest image")
|
||||
latestImageVal, err = client.GetLatestImage()
|
||||
latestImageVal, err = client.GetLatestImage(func(url string) (*http.Response, error) {
|
||||
return http.Get(url)
|
||||
})
|
||||
if err != nil {
|
||||
return c.String(http.StatusInternalServerError, "Error fetching latest image")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user