From e8c3fe064a9f2da6d0761ab54b727476a198ab40 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 24 Nov 2023 01:52:58 +0000 Subject: [PATCH] Listener returns "204 No Content" on success --- tor-miner/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tor-miner/report.go b/tor-miner/report.go index a386a1d..84eb1b2 100644 --- a/tor-miner/report.go +++ b/tor-miner/report.go @@ -103,7 +103,7 @@ func (r *Report) Send() error { } defer res.Body.Close() - if res.StatusCode != http.StatusOK { + if res.StatusCode != http.StatusNoContent { fmt.Printf("tor-miner: %s: %s\n", res.Request.URL, res.Status) } return nil