We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d4c6c26 + 7ebf7c1 commit 6c8123eCopy full SHA for 6c8123e
extension/notification/teams/teams.go
@@ -130,9 +130,9 @@ func (s *sender) Send(event types.EventNotification) error {
130
131
// Send notification via HTTP POST.
132
resp, err := s.client.Post(s.endpoint, "application/json", bytes.NewBuffer(jsonNotification))
133
- if err != nil || resp == nil || (resp.StatusCode != 200 && resp.StatusCode != 201) {
+ if err != nil || resp == nil || (resp.StatusCode != 200 && resp.StatusCode != 201 && resp.StatusCode != 202) {
134
if resp != nil {
135
- return fmt.Errorf("got status %d, expected 200/201", resp.StatusCode)
+ return fmt.Errorf("got status %d, expected 200/201/202", resp.StatusCode)
136
}
137
return err
138
0 commit comments