- matching ee codebase at 0afe57034449ee0e9f333d92c252a13995a93019
- helm install using endpoint middleware - remove trailing slash from added/persisted helm repo urls
This commit is contained in:
@@ -22,6 +22,8 @@ type addHelmRepoUrlPayload struct {
|
||||
}
|
||||
|
||||
func (p *addHelmRepoUrlPayload) Validate(_ *http.Request) error {
|
||||
p.URL = strings.TrimSuffix(p.URL, "/")
|
||||
|
||||
if p.URL == "" {
|
||||
return errors.New("URL is required")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user