mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
Merge pull request #12070 from ninjadq/chartrepo_enumeration
Fix: chart repo response code inconsistent
This commit is contained in:
commit
7bf9888b34
@ -440,7 +440,7 @@ func (cra *ChartRepositoryAPI) requireNamespace(namespace string) bool {
|
||||
|
||||
// Not existing
|
||||
if !existing {
|
||||
cra.SendBadRequestError(fmt.Errorf("namespace %s is not existing", namespace))
|
||||
cra.handleProjectNotFound(namespace)
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user