Skip to content

Commit a3a0c83

Browse files
dkhalizovCopilot
authored andcommitted
Update pkg/notifications/webhook.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a0b8818 commit a3a0c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/notifications/webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (w *WebhookNotifier) Send(event Event) error {
5050

5151
defer func() { _ = resp.Body.Close() }()
5252

53-
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
53+
if resp.StatusCode/100 != 2 {
5454
return fmt.Errorf("webhook request failed with status: %d", resp.StatusCode)
5555
}
5656

0 commit comments

Comments
 (0)