This commit is contained in:
@@ -914,7 +914,7 @@ func ServeMedia(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
body, contentType, err := s3Service.GetFile(key)
|
||||
body, contentType, err := s3Service.GetFile(c.Request.Context(), key)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusNotFound, gin.H{"error": "Média non trouvé"})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user