diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index fef4639..4918ac4 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -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)) }