Skip to content

Commit

Permalink
fix: 修复 getAuth 里代码逻辑报错
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderswang committed Apr 27, 2021
1 parent 7e823bb commit b0f12c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function getAuth() {
Key: key
}, function (AuthData) {
if (typeof AuthData === 'string') {
AuthData = {Authorization: AuthData.Authorization};
AuthData = {Authorization: AuthData};
}
var url = 'http://' + config.Bucket + '.cos.' + config.Region + '.myqcloud.com' + '/' +
camSafeUrlEncode(key).replace(/%2F/g, '/') +
Expand Down

0 comments on commit b0f12c1

Please sign in to comment.