Skip to content

Commit

Permalink
feat:getObjectUrl支持Headers、Query参数
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Jul 1, 2021
1 parent e20f993 commit 7e19f11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo-album/lib/cos-wx-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -8193,6 +8193,8 @@ function getObjectUrl(params, callback) {
Method: params.Method || 'get',
Key: params.Key,
Expires: params.Expires,
Headers: params.Headers,
Query: params.Query
}, function (err, AuthData) {
if (!callback) return;
if (err) {
Expand Down
2 changes: 2 additions & 0 deletions demo/lib/cos-wx-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -8193,6 +8193,8 @@ function getObjectUrl(params, callback) {
Method: params.Method || 'get',
Key: params.Key,
Expires: params.Expires,
Headers: params.Headers,
Query: params.Query
}, function (err, AuthData) {
if (!callback) return;
if (err) {
Expand Down
2 changes: 2 additions & 0 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2898,6 +2898,8 @@ function getObjectUrl(params, callback) {
Method: params.Method || 'get',
Key: params.Key,
Expires: params.Expires,
Headers: params.Headers,
Query: params.Query
}, function (err, AuthData) {
if (!callback) return;
if (err) {
Expand Down

0 comments on commit 7e19f11

Please sign in to comment.