Skip to content

Commit

Permalink
change statusok to statuscreated
Browse files Browse the repository at this point in the history
  • Loading branch information
danjenkins committed Aug 6, 2024
1 parent a1ac3ad commit bffdae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bffdae6

Please sign in to comment.