Quellcode durchsuchen

delete IgnoreSameKey omitempty

taowei.wtw vor 5 Jahren
Ursprung
Commit
5cb0baa8e0
3 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 1 1
      oss/client_test.go
  2. 1 1
      oss/const.go
  3. 2 2
      oss/type.go

+ 1 - 1
oss/client_test.go

@@ -3409,7 +3409,7 @@ func (s *OssClientSuite) TestBucketAsyncTask(c *C) {
 		ContentMD5:    "",
 		Callback:      "",
 		StorageClass:  "",
-		IgnoreSameKey: true,
+		IgnoreSameKey: false,
 	}
 
 	asynResult, err := client.SetBucketAsyncTask(bucketName, asynConf)

+ 1 - 1
oss/const.go

@@ -224,7 +224,7 @@ const (
 
 	NullVersion = "null"
 
-	Version = "v2.1.1" // Go SDK version
+	Version = "v2.1.2" // Go SDK version
 )
 
 // FrameType

+ 2 - 2
oss/type.go

@@ -1146,7 +1146,7 @@ type AsyncFetchTaskConfiguration struct {
 	ContentMD5    string   `xml:"ContentMD5,omitempty"`
 	Callback      string   `xml:"Callback,omitempty"`
 	StorageClass  string   `xml:"StorageClass,omitempty"`
-	IgnoreSameKey bool     `xml:"IgnoreSameKey,omitempty"`
+	IgnoreSameKey bool     `xml:"IgnoreSameKey"`
 }
 
 // AsyncFetchTaskResult for SetBucketAsyncFetchTask result
@@ -1173,5 +1173,5 @@ type AsyncTaskInfo struct {
 	ContentMD5    string   `xml:"ContentMD5,omitempty"`
 	Callback      string   `xml:"Callback,omitempty"`
 	StorageClass  string   `xml:"StorageClass,omitempty"`
-	IgnoreSameKey bool     `xml:"IgnoreSameKey,omitempty"`
+	IgnoreSameKey bool     `xml:"IgnoreSameKey"`
 }