Fixe file type

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
This commit is contained in:
Pierre-Emmanuel Jacquier
2019-02-27 13:18:01 +01:00
parent a4dccc9f81
commit 05de6083f6

View File

@@ -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))
}