Merge pull request #755 from prometheus/noslash-pathprefix

Fix slash position in MustBuildServerURL().
This commit is contained in:
Julius Volz 2015-06-01 13:38:28 +02:00
commit b0a1ca02f1
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func MustBuildServerURL(pathPrefix string) string {
if err != nil { if err != nil {
panic(err) panic(err)
} }
return fmt.Sprintf("http://%s:%s/%s", hostname, port, pathPrefix) return fmt.Sprintf("http://%s:%s%s/", hostname, port, pathPrefix)
} }
func getHostname() (string, error) { func getHostname() (string, error) {