From f9fe002ddc5e8cf0ff277b6cfe25d125fd03674b Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:42:35 +0100 Subject: [PATCH] Response with 202 (#51) --- src/web/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/api.go b/src/web/api.go index c2c41d8..73dce8f 100644 --- a/src/web/api.go +++ b/src/web/api.go @@ -90,13 +90,13 @@ func WebhookHandler(c *gin.Context) { ret = true } else { - // HMAC signature is invalid: do not send [accepted] response + // HMAC signature is invalid log.Println("HMAC signature is invalid") ret = false } if ret { - c.String(200, "[accepted]") + c.Status(http.StatusAccepted) } else { c.String(401, "Invalid hmac signature") }