diff --git a/demo/cos_demo.cpp b/demo/cos_demo.cpp index 11d9aae..ee23381 100644 --- a/demo/cos_demo.cpp +++ b/demo/cos_demo.cpp @@ -284,7 +284,7 @@ void PutBucketACL(qcloud_cos::CosAPI& cos, const std::string& bucket_name) { // 2. 设置ACL配置(通过Header, 设置ACL可以通过Body、Header两种方式,但只能二选一,否则会有冲突) { qcloud_cos::PutBucketACLReq req(bucket_name); - req.SetXCosAcl("public-read-write"); + req.SetXCosAcl("public-read"); qcloud_cos::PutBucketACLResp resp; qcloud_cos::CosResult result = cos.PutBucketACL(req, &resp); diff --git a/include/cos_defines.h b/include/cos_defines.h index 02b8fcf..085115b 100644 --- a/include/cos_defines.h +++ b/include/cos_defines.h @@ -11,7 +11,7 @@ namespace qcloud_cos { -#define COS_CPP_SDK_VERSON "v5.5.13" +#define COS_CPP_SDK_VERSON "v5.5.14" /// 路径分隔符 const char kPathDelimiter[] = "/"; diff --git a/include/request/object_req.h b/include/request/object_req.h index cdbe7fa..eee1552 100644 --- a/include/request/object_req.h +++ b/include/request/object_req.h @@ -271,7 +271,7 @@ class PutObjectReq : public ObjectReq { AddHeader("x-cos-storage-class", storage_class); } - /// 定义Object的ACL属性,有效值:private,public-read-write,public-read + /// 定义Object的ACL属性,有效值:default,private,public-read /// 默认值:private void SetXCosAcl(const std::string& str) { AddHeader("x-cos-acl", str); } @@ -536,7 +536,7 @@ class InitMultiUploadReq : public ObjectReq { AddHeader("x-cos-storage-class", storage_class); } - /// 定义Object的ACL属性,有效值:private,public-read-write,public-read + /// 定义Object的ACL属性,有效值:default,private,public-read /// 默认值:private void SetXCosAcl(const std::string& str) { AddHeader("x-cos-acl", str); } @@ -949,7 +949,7 @@ class PutObjectACLReq : public ObjectReq { virtual ~PutObjectACLReq() {} - /// 定义Object的ACL属性,有效值:private,public-read-write,public-read + /// 定义Object的ACL属性,有效值:default,private,public-read /// 默认值:private void SetXCosAcl(const std::string& str) { AddHeader("x-cos-acl", str); } @@ -1118,7 +1118,7 @@ class PutObjectCopyReq : public ObjectReq { AddHeader("x-cos-storage-class", storage_class); } - /// 定义Object的ACL属性,有效值:private,public-read-write,public-read + /// 定义Object的ACL属性,有效值:default,private,public-read /// 默认值:private void SetXCosAcl(const std::string& str) { AddHeader("x-cos-acl", str); } @@ -1212,7 +1212,7 @@ class CopyReq : public ObjectReq { AddHeader("x-cos-storage-class", storage_class); } - /// 定义Object的ACL属性,有效值:private,public-read-write,public-read + /// 定义Object的ACL属性,有效值:default,private,public-read /// 默认值:private void SetXCosAcl(const std::string& str) { AddHeader("x-cos-acl", str); }