From cb761a73d6fb2f6b9edd7b8fcbbe64ac4a728c55 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Tue, 13 Apr 2021 11:14:37 +0530 Subject: [PATCH] try fix breaking images --- controllers/podcast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/podcast.go b/controllers/podcast.go index 889b870..a82760c 100644 --- a/controllers/podcast.go +++ b/controllers/podcast.go @@ -217,7 +217,7 @@ func GetPodcastItemImageById(c *gin.Context) { if _, err = os.Stat(podcast.LocalImage); os.IsNotExist(err) { c.Redirect(301, podcast.Image) } else { - c.Redirect(302, fmt.Sprintf("/%s", podcast.LocalImage)) + c.Redirect(302, "/"+podcast.LocalImage) } } } else {