Merge pull request #2878 from guol-fnst/fix_create_bucket_resp

Add "Location:" in response when creating bucket
This commit is contained in:
Chris Lu 2022-04-05 23:06:16 -07:00 committed by GitHub
commit 7c85cb332d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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