diff options
| author | root <root@localhost.localdomain> | 2022-04-06 13:56:27 +0800 |
|---|---|---|
| committer | root <root@localhost.localdomain> | 2022-04-06 13:56:27 +0800 |
| commit | f15a737a0abe8b747bf4070b776f9b91a9a3b18a (patch) | |
| tree | 04471398395b608a4e6b51de77dcfd1e92843278 | |
| parent | bc888226fc89f623391b78d4f642c63b7e100967 (diff) | |
| download | seaweedfs-f15a737a0abe8b747bf4070b776f9b91a9a3b18a.tar.xz seaweedfs-f15a737a0abe8b747bf4070b776f9b91a9a3b18a.zip | |
Add "Location:" in response when creating bucket
according to "https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html"
| -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) } |
