chore: return 204 when notification is send
This commit is contained in:
parent
8c3cd0f286
commit
1b48840c8b
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ func (b Bridge) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
defer r.Body.Close()
|
defer r.Body.Close()
|
||||||
|
|
||||||
if errors.Is(err, errSkipNotification) {
|
if errors.Is(err, errSkipNotification) {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,5 +156,5 @@ func (b Bridge) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
slog.Debug("notification sent with success")
|
slog.Debug("notification sent with success")
|
||||||
|
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue