From 3179a875b8b638fb86d0e829d12a9761c1cd7f90 Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Tue, 13 Apr 2021 11:52:52 +0530 Subject: [PATCH] fixing breaking images --- controllers/podcast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/podcast.go b/controllers/podcast.go index a82760c..3713c80 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, "/"+podcast.LocalImage) + c.File(podcast.LocalImage) } } } else {