diff --git a/.changelog/3268.txt b/.changelog/3268.txt new file mode 100644 index 0000000000..fea1d7edb6 --- /dev/null +++ b/.changelog/3268.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_cos_buckets: Fix the issue of query errors +``` \ No newline at end of file diff --git a/tencentcloud/services/cos/data_source_tc_cos_buckets.go b/tencentcloud/services/cos/data_source_tc_cos_buckets.go index 859fac50b2..7ce7018587 100644 --- a/tencentcloud/services/cos/data_source_tc_cos_buckets.go +++ b/tencentcloud/services/cos/data_source_tc_cos_buckets.go @@ -261,8 +261,11 @@ func DataSourceTencentCloudCosBuckets() *schema.Resource { // Description: "", //}, "follow_http_headers": { - Type: schema.TypeList, - Optional: true, + Type: schema.TypeSet, + Optional: true, + Set: func(i interface{}) int { + return helper.HashString(i.(string)) + }, Description: "Specifies the pass through headers when accessing the origin server.", Elem: &schema.Schema{Type: schema.TypeString}, },