mirror of
https://github.com/harness/drone.git
synced 2025-05-20 10:59:56 +08:00
fix: [AH-784]: Updated URL provider to update casing for space names (#3158)
* [AH-784]: Updated URL provider to update casing for space names
This commit is contained in:
parent
096b86da47
commit
77ddc2a601
@ -246,6 +246,9 @@ func (p *provider) RegistryURL(_ context.Context, params ...string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
segments := []string{u.Path}
|
segments := []string{u.Path}
|
||||||
|
if len(params) > 0 {
|
||||||
|
params[0] = strings.ToLower(params[0])
|
||||||
|
}
|
||||||
segments = append(segments, params...)
|
segments = append(segments, params...)
|
||||||
fullPath := path.Join(segments...)
|
fullPath := path.Join(segments...)
|
||||||
u.Path = fullPath
|
u.Path = fullPath
|
||||||
|
Loading…
Reference in New Issue
Block a user