Prechádzať zdrojové kódy

更新 src/aliyunoss.cpp

1585346868 8 mesiacov pred
rodič
commit
6502b8e069
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/aliyunoss.cpp

+ 2 - 2
src/aliyunoss.cpp

@@ -158,11 +158,11 @@ std::string module::aliyun_oss::del(const std::string& endpoint, const std::stri
 
 
     headers = aos_table_make(options->pool, 1);
-    apr_table_set(headers, OSS_CONTENT_TYPE, content_type.c_str());
+    //apr_table_set(headers, OSS_CONTENT_TYPE, content_type.c_str());
     aos_str_set(&bucket, bucket_name.c_str());
     aos_str_set(&object, object_name.c_str());
 
-    s = oss_delete_object(oss_client_options, &bucket, &object, &resp_headers);
+    s = oss_delete_object(options, &bucket, &object, &resp_headers);
 
     std::string return_msg;
     if (aos_status_is_ok(s)) {