Skip to content

Commit b0f12c1

Browse files
author
wonderswang
committed
fix: 修复 getAuth 里代码逻辑报错
1 parent 7e823bb commit b0f12c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/demo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function getAuth() {
220220
Key: key
221221
}, function (AuthData) {
222222
if (typeof AuthData === 'string') {
223-
AuthData = {Authorization: AuthData.Authorization};
223+
AuthData = {Authorization: AuthData};
224224
}
225225
var url = 'http://' + config.Bucket + '.cos.' + config.Region + '.myqcloud.com' + '/' +
226226
camSafeUrlEncode(key).replace(/%2F/g, '/') +

0 commit comments

Comments
 (0)