From 9d133ea2b542ac083281942e7176f9fff2b2d8b7 Mon Sep 17 00:00:00 2001 From: "Thibault \"bui\" Koechlin" Date: Tue, 18 Jan 2022 08:35:49 +0100 Subject: [PATCH] fix #1172 (#1175) --- plugins/notifications/http/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/notifications/http/main.go b/plugins/notifications/http/main.go index a1a39df57..eb2540756 100644 --- a/plugins/notifications/http/main.go +++ b/plugins/notifications/http/main.go @@ -79,7 +79,7 @@ func (s *HTTPPlugin) Notify(ctx context.Context, notification *protobufs.Notific logger.Debug(fmt.Sprintf("got response %s", string(respData))) - if resp.StatusCode != 200 { + if resp.StatusCode < 200 || resp.StatusCode >= 300 { logger.Warn(fmt.Sprintf("HTTP server returned non 200 status code: %d", resp.StatusCode)) return &protobufs.Empty{}, nil }