mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 08:25:48 +00:00
Return the location header when creating proxy cache project (#13322)
Fixes #13303. Return the location header when creating proxy cache project Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
ac5c8837c6
commit
3dbe6a44cd
|
@ -181,7 +181,6 @@ func (a *projectAPI) CreateProject(ctx context.Context, params operation.CreateP
|
|||
if err := a.metadataMgr.Add(ctx, projectID, md); err != nil {
|
||||
return a.SendError(ctx, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
location := fmt.Sprintf("%s/%d", strings.TrimSuffix(params.HTTPRequest.URL.Path, "/"), projectID)
|
||||
|
|
Loading…
Reference in New Issue
Block a user