mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 00:07:58 +08:00
weed/s3api: added new bucket handlers for more compatibility with AWS S3
Protocol Otherwise any requests to the underlying handlers results in calls to ListObjects (v1) that may intensively load gateway and volume servers. Added the following handlers with default responses: - GetBucketLocation - GetBucketRequestPayment Added the following handlers with NotFound and NotImplemented responses: - PutBucketAcl - GetBucketPolicy - PutBucketPolicy - DeleteBucketPolicy - GetBucketCors - PutBucketCors - DeleteBucketCors
This commit is contained in:
@@ -58,4 +58,5 @@ var s3ErrorResponseMap = map[string]string{
|
||||
"InvalidDuration": "Duration provided in the request is invalid.",
|
||||
"XAmzContentSHA256Mismatch": "The provided 'x-amz-content-sha256' header does not match what was computed.",
|
||||
// Add new API errors here.
|
||||
"NoSuchCORSConfiguration": "The CORS configuration does not exist",
|
||||
}
|
||||
|
Reference in New Issue
Block a user