fix: do not log error for backend logout 204 (#3381)

* Don't log error for backend logout 204

Signed-off-by: artificiosus <artificiosus@users.noreply.github.com>

* doc: add changelog entry for #3381

Signed-off-by: Jan Larwig <jan@larwig.com>

* refactor: use http.StatusOK and http.StatusNoContent instead of integers

Signed-off-by: Jan Larwig <jan@larwig.com>

---------

Signed-off-by: artificiosus <artificiosus@users.noreply.github.com>
Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: Jan Larwig <jan@larwig.com>
This commit is contained in:
artificiosus
2026-03-23 10:27:49 +01:00
committed by GitHub
co-authored by Jan Larwig
parent a4d89036ec
commit 44236f0314
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -798,7 +798,7 @@ func (p *OAuthProxy) backendLogout(rw http.ResponseWriter, req *http.Request) {
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusNoContent {
logger.Errorf("error while calling backend logout url, returned error code %v", resp.StatusCode)
}
}