chore: return 204 when notification is send

This commit is contained in:
Bastien Riviere 2023-09-03 16:36:26 +02:00
parent 8c3cd0f286
commit 1b48840c8b
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -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)
}