Skip to content

Commit

Permalink
release v2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
taowei.wtw committed May 13, 2022
1 parent f7abb4e commit c82fb81
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
### 变更内容
Expand Down
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
> - 使用此SDK,用户可以方便地在任何应用、任何时间、任何地点上传,下载和管理数据。
## 版本
> - Current version: v2.2.2
> - Current version: v2.2.3
## 运行环境
> - Go 1.5及以上。
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions oss/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions oss/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c82fb81

Please sign in to comment.