Skip to content

Commit

Permalink
400 Bad Request is an error too (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbirdsong authored Dec 11, 2024
1 parent 9234ab8 commit 10bb52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shipper/shipper.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (s *LogShipper) sendBatch(messages []string) {
return err
}

if resp.StatusCode > 400 {
if resp.StatusCode >= 400 {
responseData, err := io.ReadAll(resp.Body)

if err != nil {
Expand Down

0 comments on commit 10bb52f

Please sign in to comment.