Skip to content

Commit

Permalink
fix code check
Browse files Browse the repository at this point in the history
  • Loading branch information
keefertaylor committed Aug 16, 2024
1 parent 41cfd3f commit c957a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion health/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (hc *healthClient) UpsertCheck(slug string) error {
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusCreated {
if resp.StatusCode != http.StatusCreated && resp.StatusCode != http.StatusOK {
return fmt.Errorf("unexpected code from HTTP to %s: HTTP %d", url, resp.StatusCode)
}
return nil
Expand Down

0 comments on commit c957a81

Please sign in to comment.