Skip to content

Commit

Permalink
Remove useless comment in SSO1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipok committed Mar 4, 2024
1 parent a4169ed commit 859f35e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions auth-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,7 @@ func SSO1(w http.ResponseWriter, req *http.Request) bool {
// browser's point of view we just changed the path at the beginning.
target := "https://" + domains[req.Host].LoginFrom + "/jauth-sso/"
target += req.Host
// URI can be just one `/`. And this is only option of invalid URI for us.
// We do not add it as we will get `//` at the end which will force the
// browser to make an additional useless request
// if len(req.RequestURI) > 1 { TODO
target += req.RequestURI
// }
http.Redirect(w, req, target, http.StatusFound)
return true
}
Expand Down

0 comments on commit 859f35e

Please sign in to comment.