Skip to content

Commit 62c6dd7

Browse files
committed
feat:getObjectUrl支持Headers Query参数
1 parent ddc8129 commit 62c6dd7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

dist/cos-js-sdk-v5.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7771,7 +7771,9 @@ function getObjectUrl(params, callback) {
77717771
Region: params.Region || '',
77727772
Method: params.Method || 'get',
77737773
Key: params.Key,
7774-
Expires: params.Expires
7774+
Expires: params.Expires,
7775+
Headers: params.Headers,
7776+
Query: params.Query
77757777
}, function (err, AuthData) {
77767778
if (!callback) return;
77777779
if (err) {

dist/cos-js-sdk-v5.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,6 +2960,8 @@ function getObjectUrl(params, callback) {
29602960
Method: params.Method || 'get',
29612961
Key: params.Key,
29622962
Expires: params.Expires,
2963+
Headers: params.Headers,
2964+
Query: params.Query,
29632965
}, function (err, AuthData) {
29642966
if (!callback) return;
29652967
if (err) {

0 commit comments

Comments
 (0)