This commit is contained in:
Thibault "bui" Koechlin 2022-01-18 08:35:49 +01:00 committed by GitHub
parent 40ed810c0b
commit 9d133ea2b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}