From 1b48840c8b7c795256340a9354417a2ba83045df Mon Sep 17 00:00:00 2001 From: Bastien Riviere Date: Sun, 3 Sep 2023 16:36:26 +0200 Subject: [PATCH] chore: return 204 when notification is send --- bridge/bridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/bridge.go b/bridge/bridge.go index 2fd6204..3ee95fb 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -136,7 +136,7 @@ func (b Bridge) ServeHTTP(w http.ResponseWriter, r *http.Request) { defer r.Body.Close() if errors.Is(err, errSkipNotification) { - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusNoContent) return } @@ -156,5 +156,5 @@ func (b Bridge) ServeHTTP(w http.ResponseWriter, r *http.Request) { slog.Debug("notification sent with success") - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusNoContent) }