@@ -89,7 +89,7 @@ long S3fsCurl::connect_timeout = 300; // default
89
89
time_t S3fsCurl::readwrite_timeout = 120 ; // default
90
90
int S3fsCurl::retries = 5 ; // default
91
91
bool S3fsCurl::is_public_bucket = false ;
92
- acl_t S3fsCurl::default_acl = acl_t ::PRIVATE ;
92
+ acl_t S3fsCurl::default_acl = acl_t ::DEFAULT ;
93
93
std::string S3fsCurl::storage_class = " STANDARD" ;
94
94
sseckeylist_t S3fsCurl::sseckeys;
95
95
std::string S3fsCurl::ssekmsid;
@@ -3268,7 +3268,7 @@ int S3fsCurl::PutHeadRequest(const char* tpath, headers_t& meta, bool is_copy)
3268
3268
for (headers_t ::iterator iter = meta.begin (); iter != meta.end (); ++iter){
3269
3269
std::string key = lower (iter->first );
3270
3270
std::string value = iter->second ;
3271
- if (is_prefix (key.c_str (), " x-oss-acl" )){
3271
+ if (is_prefix (key.c_str (), " x-oss-object- acl" )){
3272
3272
// not set value, but after set it.
3273
3273
}else if (is_prefix (key.c_str (), " x-oss-meta" )){
3274
3274
requestHeaders = curl_slist_sort_insert (requestHeaders, iter->first .c_str (), value.c_str ());
@@ -3294,9 +3294,9 @@ int S3fsCurl::PutHeadRequest(const char* tpath, headers_t& meta, bool is_copy)
3294
3294
}
3295
3295
}
3296
3296
3297
- // "x-oss-acl", storage class, sse
3298
- if (S3fsCurl::default_acl != acl_t ::PRIVATE ){
3299
- requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-acl" , S3fsCurl::default_acl.str ());
3297
+ // "x-oss-object- acl", storage class, sse
3298
+ if (S3fsCurl::default_acl != acl_t ::DEFAULT ){
3299
+ requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-object- acl" , S3fsCurl::default_acl.str ());
3300
3300
}
3301
3301
if (strcasecmp (GetStorageClass ().c_str (), " STANDARD" ) != 0 ){
3302
3302
requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-storage-class" , GetStorageClass ().c_str ());
@@ -3408,7 +3408,7 @@ int S3fsCurl::PutRequest(const char* tpath, headers_t& meta, int fd)
3408
3408
for (headers_t ::iterator iter = meta.begin (); iter != meta.end (); ++iter){
3409
3409
std::string key = lower (iter->first );
3410
3410
std::string value = iter->second ;
3411
- if (is_prefix (key.c_str (), " x-oss-acl" )){
3411
+ if (is_prefix (key.c_str (), " x-oss-object- acl" )){
3412
3412
// not set value, but after set it.
3413
3413
}else if (is_prefix (key.c_str (), " x-oss-meta" )){
3414
3414
requestHeaders = curl_slist_sort_insert (requestHeaders, iter->first .c_str (), value.c_str ());
@@ -3420,9 +3420,9 @@ int S3fsCurl::PutRequest(const char* tpath, headers_t& meta, int fd)
3420
3420
// skip this header, because this header is specified after logic.
3421
3421
}
3422
3422
}
3423
- // "x-oss-acl", storage class, sse
3424
- if (S3fsCurl::default_acl != acl_t ::PRIVATE ){
3425
- requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-acl" , S3fsCurl::default_acl.str ());
3423
+ // "x-oss-object- acl", storage class, sse
3424
+ if (S3fsCurl::default_acl != acl_t ::DEFAULT ){
3425
+ requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-object- acl" , S3fsCurl::default_acl.str ());
3426
3426
}
3427
3427
if (strcasecmp (GetStorageClass ().c_str (), " STANDARD" ) != 0 ){
3428
3428
requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-storage-class" , GetStorageClass ().c_str ());
@@ -3802,7 +3802,7 @@ int S3fsCurl::PreMultipartPostRequest(const char* tpath, headers_t& meta, std::s
3802
3802
for (headers_t ::iterator iter = meta.begin (); iter != meta.end (); ++iter){
3803
3803
std::string key = lower (iter->first );
3804
3804
std::string value = iter->second ;
3805
- if (is_prefix (key.c_str (), " x-oss-acl" )){
3805
+ if (is_prefix (key.c_str (), " x-oss-object- acl" )){
3806
3806
// not set value, but after set it.
3807
3807
}else if (is_prefix (key.c_str (), " x-oss-meta" )){
3808
3808
requestHeaders = curl_slist_sort_insert (requestHeaders, iter->first .c_str (), value.c_str ());
@@ -3825,9 +3825,9 @@ int S3fsCurl::PreMultipartPostRequest(const char* tpath, headers_t& meta, std::s
3825
3825
}
3826
3826
}
3827
3827
}
3828
- // "x-oss-acl", storage class, sse
3829
- if (S3fsCurl::default_acl != acl_t ::PRIVATE ){
3830
- requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-acl" , S3fsCurl::default_acl.str ());
3828
+ // "x-oss-object- acl", storage class, sse
3829
+ if (S3fsCurl::default_acl != acl_t ::DEFAULT ){
3830
+ requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-object- acl" , S3fsCurl::default_acl.str ());
3831
3831
}
3832
3832
if (strcasecmp (GetStorageClass ().c_str (), " STANDARD" ) != 0 ){
3833
3833
requestHeaders = curl_slist_sort_insert (requestHeaders, " x-oss-storage-class" , GetStorageClass ().c_str ());
@@ -4207,7 +4207,7 @@ int S3fsCurl::CopyMultipartPostSetup(const char* from, const char* to, int part_
4207
4207
}else if (key == " x-oss-copy-source-range" ){
4208
4208
requestHeaders = curl_slist_sort_insert (requestHeaders, iter->first .c_str (), value.c_str ());
4209
4209
}
4210
- // NOTICE: x-oss-acl, x-oss-server-side-encryption is not set!
4210
+ // NOTICE: x-oss-object- acl, x-oss-server-side-encryption is not set!
4211
4211
}
4212
4212
4213
4213
op = " PUT" ;
0 commit comments