From bffdae6bcad92f1fe90b753c48e769d7a7bc1932 Mon Sep 17 00:00:00 2001 From: Dan Jenkins Date: Tue, 6 Aug 2024 16:40:18 +0100 Subject: [PATCH] change statusok to statuscreated --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 623bb36..a818791 100644 --- a/client/client.go +++ b/client/client.go @@ -279,7 +279,7 @@ func (c *Client) Stop() error { defer resp.Body.Close() // Check the response - if resp.StatusCode == http.StatusOK { + if resp.StatusCode == http.StatusCreated { fmt.Println("Data sent successfully!") } else { fmt.Printf("Failed to send data. Status code: %d\n", resp.StatusCode)