fix reinsert torrent error

This commit is contained in:
Mukhtar Akere
2025-04-16 23:19:52 +01:00
parent af067cace9
commit c07a85f4d0
5 changed files with 21 additions and 32 deletions

View File

@@ -511,8 +511,7 @@ func (ui *Handler) handleUpdateConfig(w http.ResponseWriter, r *http.Request) {
}
// Return success
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(map[string]string{"status": "success"})
request.JSONResponse(w, map[string]string{"status": "success"}, http.StatusOK)
}
func (ui *Handler) handleGetRepairJobs(w http.ResponseWriter, r *http.Request) {