From e4287062d6aaa733f51bce48a3038e3249b9b380 Mon Sep 17 00:00:00 2001 From: kiblik <5609770+kiblik@users.noreply.github.com> Date: Wed, 11 Sep 2024 22:57:48 +0200 Subject: [PATCH] Accept any 2xx as successful --- dojo/notifications/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/notifications/helper.py b/dojo/notifications/helper.py index 7fa5b1d1c19..9acbf94d215 100644 --- a/dojo/notifications/helper.py +++ b/dojo/notifications/helper.py @@ -427,7 +427,7 @@ def send_webhooks_notification(event, user=None, *args, **kwargs): logger.debug(f"Sending webhook message to endpoint '{endpoint.name}'") res = webhooks_notification_request(endpoint, event, *args, **kwargs) - if res.status_code in [200, 201]: + if 200 <= res.status_code < 300: logger.debug(f"Message sent to endpoint '{endpoint.name}' successfully.") continue