Replace string concat to path.Join
parent
0bb20c8a0f
commit
9c597d2c8f
|
@ -8,6 +8,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
@ -182,7 +183,7 @@ func (s *Server) genericRedirectURL() string {
|
||||||
genericName = s.GenericName
|
genericName = s.GenericName
|
||||||
}
|
}
|
||||||
|
|
||||||
return s.PublicURL + s.Basepath + "/oauth/" + genericName + "/callback"
|
return path.Join(s.PublicURL, s.Basepath, "oauth", genericName, "callback")
|
||||||
}
|
}
|
||||||
|
|
||||||
// BuildInfo is sent to the usage client to track versions and commits
|
// BuildInfo is sent to the usage client to track versions and commits
|
||||||
|
|
Loading…
Reference in New Issue