diff --git a/CHANGELOG.md b/CHANGELOG.md index a4bb663a..48bf65da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# ChangeLog - Aliyun OSS SDK for Go +## 版本号:v2.2.3 日期:2022-05-13 +### 变更内容 +- 增加:support cloud-box +- 增加:support v4 signature + + # ChangeLog - Aliyun OSS SDK for Go ## 版本号:v2.2.2 日期:2022-03-24 ### 变更内容 diff --git a/README-CN.md b/README-CN.md index 6f361378..01e54b91 100644 --- a/README-CN.md +++ b/README-CN.md @@ -13,7 +13,7 @@ > - 使用此SDK,用户可以方便地在任何应用、任何时间、任何地点上传,下载和管理数据。 ## 版本 -> - Current version: v2.2.2 +> - Current version: v2.2.3 ## 运行环境 > - Go 1.5及以上。 diff --git a/README.md b/README.md index 4ee00ca5..666c7391 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ > - With this SDK, you can upload, download and manage data on any app anytime and anywhere conveniently. ## Version -> - Current version: v2.2.2 +> - Current version: v2.2.3 ## Running Environment > - Go 1.5 or above. diff --git a/oss/auth.go b/oss/auth.go index 7394b439..9cb9c3c7 100644 --- a/oss/auth.go +++ b/oss/auth.go @@ -159,7 +159,7 @@ func (conn Conn) getSignedStr(req *http.Request, canonicalizedResource string, k } if conn.config.LogLevel >= Debug { - conn.config.WriteLog(Debug, "[Req:%p]canonicalReuqest:%s\n", req, EscapeLFString(signStr)) + conn.config.WriteLog(Debug, "[Req:%p]signStr:%s\n", req, EscapeLFString(signStr)) } io.WriteString(h, signStr) @@ -245,7 +245,7 @@ func (conn Conn) getSignedStrV4(req *http.Request, canonicalizedResource string, hashedRequest := hex.EncodeToString(rh.Sum(nil)) if conn.config.LogLevel >= Debug { - conn.config.WriteLog(Debug, "[Req:%p]canonicalReuqest:%s\n", req, EscapeLFString(canonicalReuqest)) + conn.config.WriteLog(Debug, "[Req:%p]signStr:%s\n", req, EscapeLFString(canonicalReuqest)) } // get day,eg 20210914 diff --git a/oss/client_test.go b/oss/client_test.go index 8408eb0d..0cf40e45 100755 --- a/oss/client_test.go +++ b/oss/client_test.go @@ -1075,8 +1075,8 @@ func (s *OssClientSuite) TestSetBucketLifecycleXml(c *C) { err = client.SetBucketLifecycleXml(bucketNameTest, xmlBody, options...) c.Assert(err, NotNil) - strXml, err := client.GetBucketLifecycleXml(bucketNameTest, options...) - c.Assert(len(strXml) > 0, Equals, true) + _, err = client.GetBucketLifecycleXml(bucketNameTest, options...) + c.Assert(err, NotNil) err = client.DeleteBucket(bucketNameTest) c.Assert(err, IsNil)