Skip to content

Commit

Permalink
Merge pull request #167 from tencentyun/feature_huberyxxiao_9134bc9d
Browse files Browse the repository at this point in the history
demo 优化
  • Loading branch information
Huberyxiao authored Sep 23, 2024
2 parents 885df26 + 00dc2fe commit 940222d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion demo/cos_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/cos_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = "/";
Expand Down
10 changes: 5 additions & 5 deletions include/request/object_req.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

Expand Down Expand Up @@ -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); }

Expand Down Expand Up @@ -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); }

Expand Down Expand Up @@ -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); }

Expand Down Expand Up @@ -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); }

Expand Down

0 comments on commit 940222d

Please sign in to comment.