fix: [AH-784]: Updated URL provider to update casing for space names (#3158)

* [AH-784]: Updated URL provider to update casing for space names
BT-10437
Arvind Choudhary 2024-12-17 00:15:47 +00:00 committed by Harness
parent 096b86da47
commit 77ddc2a601
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ func (p *provider) RegistryURL(_ context.Context, params ...string) string {
}
segments := []string{u.Path}
if len(params) > 0 {
params[0] = strings.ToLower(params[0])
}
segments = append(segments, params...)
fullPath := path.Join(segments...)
u.Path = fullPath