diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-05 23:06:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-05 23:06:16 -0700 |
| commit | 7c85cb332d6aa207350b81fad8d03823a29baab4 (patch) | |
| tree | 04471398395b608a4e6b51de77dcfd1e92843278 | |
| parent | bc888226fc89f623391b78d4f642c63b7e100967 (diff) | |
| parent | f15a737a0abe8b747bf4070b776f9b91a9a3b18a (diff) | |
| download | seaweedfs-7c85cb332d6aa207350b81fad8d03823a29baab4.tar.xz seaweedfs-7c85cb332d6aa207350b81fad8d03823a29baab4.zip | |
Merge pull request #2878 from guol-fnst/fix_create_bucket_resp
Add "Location:" in response when creating bucket
| -rw-r--r-- | weed/s3api/s3api_bucket_handlers.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/s3api/s3api_bucket_handlers.go b/weed/s3api/s3api_bucket_handlers.go index b8f2c2f7a..7de1d5ebb 100644 --- a/weed/s3api/s3api_bucket_handlers.go +++ b/weed/s3api/s3api_bucket_handlers.go @@ -135,6 +135,7 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request) s3err.WriteErrorResponse(w, r, s3err.ErrInternalError) return } + w.Header().Set("Location", "/" + bucket) writeSuccessResponseEmpty(w, r) } |
