Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Apr 19, 2018
1 parent 5495244 commit 3cda187
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/cos-js-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ util.extend(COS.prototype, base);
util.extend(COS.prototype, advance);

COS.getAuthorization = util.getAuth;
COS.version = '0.4.4';
COS.version = '0.4.5';

module.exports = COS;

Expand Down Expand Up @@ -3524,7 +3524,6 @@ function _submitRequest(params, callback) {
};

// 获取签名
opt.headers.Uid = '459452372';
opt.headers.Authorization = params.AuthData.Authorization;
params.AuthData.Token && (opt.headers['token'] = params.AuthData.Token);
params.AuthData.ClientIP && (opt.headers['clientIP'] = params.AuthData.ClientIP);
Expand Down
2 changes: 1 addition & 1 deletion dist/cos-js-sdk-v5.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1954,7 +1954,6 @@ function _submitRequest(params, callback) {
};

// 获取签名
opt.headers.Uid = '459452372';
opt.headers.Authorization = params.AuthData.Authorization;
params.AuthData.Token && (opt.headers['token'] = params.AuthData.Token);
params.AuthData.ClientIP && (opt.headers['clientIP'] = params.AuthData.ClientIP);
Expand Down
2 changes: 1 addition & 1 deletion src/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ util.extend(COS.prototype, base);
util.extend(COS.prototype, advance);

COS.getAuthorization = util.getAuth;
COS.version = '0.4.4';
COS.version = '0.4.5';

module.exports = COS;

0 comments on commit 3cda187

Please sign in to comment.