From 87494b0970b82cfbfadcb68f9b08cc24e8d53ad5 Mon Sep 17 00:00:00 2001 From: LY <51789698+Young-Lord@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:56:15 +0800 Subject: [PATCH] feat(webhook): make Response Body detailed when webhook is inactive --- services/webhook/deliver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/services/webhook/deliver.go b/services/webhook/deliver.go index fd7a3d7fbae64..e65742c328930 100644 --- a/services/webhook/deliver.go +++ b/services/webhook/deliver.go @@ -207,6 +207,7 @@ func Deliver(ctx context.Context, t *webhook_model.HookTask) error { if !w.IsActive { log.Trace("Webhook %s in Webhook Task[%d] is not active", w.URL, t.ID) + t.ResponseInfo.Body = "Hook delivery skipped as webhook is inactive." return nil }