refactor(handler/frontchannellogout): ignored request should just return accepted status

This commit is contained in:
Trong Huu Nguyen
2022-07-15 09:06:04 +02:00
parent 4b2bf6e095
commit 24da9ee4f7

View File

@@ -21,7 +21,7 @@ func (h *Handler) FrontChannelLogout(w http.ResponseWriter, r *http.Request) {
if logoutFrontchannel.MissingSidParameter() {
log.Info("front-channel logout: sid parameter not set in request; ignoring")
h.DeleteSessionFallback(w, r)
w.WriteHeader(http.StatusOK)
w.WriteHeader(http.StatusAccepted)
return
}