mirror of
https://github.com/containous/traefik.git
synced 2025-03-19 18:50:12 +03:00
Merge pull request #184 from dontrebootme/master
Updated getEscapedName with slash to dash instead of space
This commit is contained in:
commit
d3598021b7
@ -63,6 +63,7 @@ func replace(s1 string, s2 string, s3 string) string {
|
||||
return strings.Replace(s3, s1, s2, -1)
|
||||
}
|
||||
|
||||
// Escape beginning slash "/", convert all others to dash "-"
|
||||
func getEscapedName(name string) string {
|
||||
return strings.Replace(name, "/", "", -1)
|
||||
return strings.Replace(strings.TrimPrefix(name, "/"), "/", "-", -1)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user