mirror of
https://github.com/prometheus/prometheus.git
synced 2025-10-17 18:41:03 +02:00
Merge pull request #755 from prometheus/noslash-pathprefix
Fix slash position in MustBuildServerURL().
This commit is contained in:
commit
b0a1ca02f1
@ -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…
x
Reference in New Issue
Block a user