From 6a5cb00131824a5d31502c905c11d42b5981d59b Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 2 Oct 2024 16:52:26 +0200 Subject: [PATCH] Fix Webhook error handling logic --- proxy/webhook2api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/webhook2api.php b/proxy/webhook2api.php index a99f366..2c9cfa1 100644 --- a/proxy/webhook2api.php +++ b/proxy/webhook2api.php @@ -126,8 +126,8 @@ function webhook2api_processConfiguration($configuration, $post_input) { } if (!empty($result['values']['http_code'])) { $http_code = $result['values']['http_code']; - } else { - $http_code = 403; + } elseif ($result['is_error'] != 0) { + $http_code = 403; } } if ($http_code != '200') {