From 19b1f3a8c117f7e121ebd2680b764710f253875a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 17 Feb 2022 20:50:47 +0100 Subject: [PATCH] internal/outpost: fix logic error Signed-off-by: Jens Langhammer --- internal/outpost/proxyv2/application/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/outpost/proxyv2/application/utils.go b/internal/outpost/proxyv2/application/utils.go index 44b20f4da..c19392873 100644 --- a/internal/outpost/proxyv2/application/utils.go +++ b/internal/outpost/proxyv2/application/utils.go @@ -23,7 +23,7 @@ func urlJoin(originalUrl string, newPath string) string { func (a *Application) redirectToStart(rw http.ResponseWriter, r *http.Request) { s, err := a.sessions.Get(r, constants.SeesionName) - if err == nil { + if err != nil { a.log.WithError(err).Warning("failed to decode session") } redirectUrl := urlJoin(a.proxyConfig.ExternalHost, r.URL.Path)