Browse Source
Merge pull request #2878 from guol-fnst/fix_create_bucket_resp
Add "Location:" in response when creating bucket
pull/2374/head^2
Chris Lu
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
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) |
|
|
|
} |
|
|
|
|
|
|
|