Let's not leak

This commit is contained in:
Bolke de Bruin 2024-04-12 12:44:07 +02:00
parent 9c6d056d69
commit d76ccf324a

View file

@ -25,8 +25,8 @@ func EnrichContext(next http.Handler) http.Handler {
} }
} }
log.Printf("Identity SessionId: %s, UserName: %s: Authenticated: %t: Path: %s", log.Printf("Identity SessionId: %s, UserName: %s: Authenticated: %t",
id.SessionId(), id.UserName(), id.Authenticated(), r.RequestURI) id.SessionId(), id.UserName(), id.Authenticated())
h := r.Header.Get("X-Forwarded-For") h := r.Header.Get("X-Forwarded-For")
if h != "" { if h != "" {