Skip to content

Commit 1c0d85c

Browse files
committed
签名 Key 容错
1 parent 76e9af5 commit 1c0d85c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/base.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ function getAuthorizationAsync(params, callback) {
19271927
if (self.options.getAuthorization) { // 外部计算签名
19281928
self.options.getAuthorization.call(self, {
19291929
Method: params.Method,
1930-
Key: params.Key,
1930+
Key: params.Key || '',
19311931
Query: params.Query,
19321932
Headers: params.Headers,
19331933
}, function (AuthData) {
@@ -1945,7 +1945,7 @@ function getAuthorizationAsync(params, callback) {
19451945
SecretId: StsData.SecretId,
19461946
SecretKey: StsData.SecretKey,
19471947
Method: params.Method,
1948-
Key: params.Key,
1948+
Key: params.Key || '',
19491949
Query: params.Query,
19501950
Headers: params.Headers,
19511951
});
@@ -1973,7 +1973,7 @@ function getAuthorizationAsync(params, callback) {
19731973
SecretId: params.SecretId || self.options.SecretId,
19741974
SecretKey: params.SecretKey || self.options.SecretKey,
19751975
Method: params.Method,
1976-
Key: params.Key,
1976+
Key: params.Key || '',
19771977
Query: params.Query,
19781978
Headers: params.Headers,
19791979
});

0 commit comments

Comments
 (0)