Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature huberyxxiao 9134bc9d #167

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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