Merge pull request #13324 from ywk253100/201021_project_cherry_pick

Return the location header when creating proxy cache project
This commit is contained in:
danfengliu 2020-10-21 17:07:15 +08:00 committed by GitHub
commit 8af343f27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)