From f1aa7858f235d9f7936db042c8c7b1b8518afcb2 Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Thu, 26 Nov 2020 22:12:44 +0300 Subject: [PATCH] update --- src/server/web/api/torrents.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/web/api/torrents.go b/src/server/web/api/torrents.go index 97fb36f..e22de6f 100644 --- a/src/server/web/api/torrents.go +++ b/src/server/web/api/torrents.go @@ -116,7 +116,7 @@ func remTorrent(req torrReqJS, c *gin.Context) { func listTorrent(req torrReqJS, c *gin.Context) { list := torr.ListTorrent() if list == nil { - c.Status(http.StatusNotFound) + c.JSON(200, []*state.TorrentStatus{}) return } var stats []*state.TorrentStatus