mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 00:53:12 +00:00
Fix slash position in MustBuildServerURL().
This commit is contained in:
parent
d7c015c149
commit
09fcf505f5
@ -251,7 +251,7 @@ func MustBuildServerURL(pathPrefix string) string {
|
||||
if err != nil {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user