internal/outpost: fix logic error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-02-17 20:50:47 +01:00
parent 80f218a6bf
commit 19b1f3a8c1
1 changed files with 1 additions and 1 deletions

View File

@ -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)