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