From a45680416ad039553e9d673425a1a9063d9a3835 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Thu, 15 Apr 2021 10:18:24 +0300 Subject: [PATCH] remove status after send file --- server/web/api/m3u.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/web/api/m3u.go b/server/web/api/m3u.go index 839cd8c..d198e38 100644 --- a/server/web/api/m3u.go +++ b/server/web/api/m3u.go @@ -10,12 +10,13 @@ import ( "strings" "time" - "github.com/anacrolix/missinggo/httptoo" sets "server/settings" "server/torr" "server/torr/state" "server/utils" + "github.com/anacrolix/missinggo/httptoo" + "github.com/gin-gonic/gin" "github.com/pkg/errors" ) @@ -78,7 +79,6 @@ func sendM3U(c *gin.Context, name, hash string, m3u string) { } c.Header("Content-Disposition", `attachment; filename="`+name+`"`) http.ServeContent(c.Writer, c.Request, name, time.Now(), bytes.NewReader([]byte(m3u))) - c.Status(200) } func getM3uList(tor *state.TorrentStatus, host string, fromLast bool) string {