From 30215582729eba5b73f14b761fbb2fab1dd6749c Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Wed, 21 Oct 2020 13:37:27 +0800 Subject: [PATCH] Return the location header when creating proxy cache project Fixes #13303. Return the location header when creating proxy cache project Signed-off-by: Wenkai Yin --- src/server/v2.0/handler/project.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/v2.0/handler/project.go b/src/server/v2.0/handler/project.go index 6caacc82a..69a3b0c81 100644 --- a/src/server/v2.0/handler/project.go +++ b/src/server/v2.0/handler/project.go @@ -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)