Browse Source

Add "Location:" in response when creating bucket

according to "https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html"
pull/2878/head
root 3 years ago
parent
commit
f15a737a0a
  1. 1
      weed/s3api/s3api_bucket_handlers.go

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

Loading…
Cancel
Save