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') {