From f1ba554a24660bd941735f473b256280043bf00b Mon Sep 17 00:00:00 2001 From: yusing Date: Sun, 4 May 2025 23:54:16 +0800 Subject: [PATCH] fix(notif): http 204 treated as error --- internal/notif/providers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notif/providers.go b/internal/notif/providers.go index 0d4c38a..84c3c41 100644 --- a/internal/notif/providers.go +++ b/internal/notif/providers.go @@ -71,7 +71,7 @@ func (msg *LogMessage) notify(ctx context.Context, provider Provider) error { defer resp.Body.Close() switch resp.StatusCode { - case http.StatusOK, http.StatusCreated, http.StatusAccepted: + case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent: body, _ := io.ReadAll(resp.Body) logging.Debug(). Str("provider", provider.GetName()).