mirror of
https://github.com/pierre-emmanuelJ/iptv-proxy.git
synced 2026-03-18 07:49:27 +01:00
Fixe file type
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
@@ -77,5 +77,6 @@ func (p *proxy) getM3U(c *gin.Context) {
|
||||
c.AbortWithError(http.StatusInternalServerError, err)
|
||||
return
|
||||
}
|
||||
c.Data(http.StatusOK, "text/plain", []byte(result))
|
||||
c.Header("Content-Disposition", "attachment; filename=\"iptv.m3u\"")
|
||||
c.Data(http.StatusOK, "application/octet-stream", []byte(result))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user