Replace string concat to path.Join

pull/10616/head
Kent Wang 2017-06-18 10:47:02 +08:00
parent 0bb20c8a0f
commit 9c597d2c8f
1 changed files with 2 additions and 1 deletions

View File

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