mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
Merge pull request #12079 from ninjadq/chartrepo_enumeration_master
Fix: chart repo response code inconsistent
This commit is contained in:
commit
64f03cc7fe
@ -442,7 +442,7 @@ func (cra *ChartRepositoryAPI) requireNamespace(namespace string) bool {
|
|||||||
|
|
||||||
// Not existing
|
// Not existing
|
||||||
if !existing {
|
if !existing {
|
||||||
cra.SendBadRequestError(fmt.Errorf("namespace %s is not existing", namespace))
|
cra.handleProjectNotFound(namespace)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user