Skip to content

Commit

Permalink
修复容错
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Aug 31, 2022
1 parent 6dbf95a commit 6e4cfd3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dist/cos-js-sdk-v5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cos-js-sdk-v5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-js-sdk-v5",
"version": "1.4.2",
"version": "1.4.3",
"description": "JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)",
"main": "dist/cos-js-sdk-v5.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3635,7 +3635,7 @@ function _submitRequest(params, callback) {
self.options.ForcePathStyle && (opt.pathStyle = self.options.ForcePathStyle);
self.emit('before-send', opt);
var useAccelerate = opt.url.includes('accelerate.');
var queryString = Object.keys(opt.qs).map(key => `${key}=${opt.qs[key]}`).join('&');
var queryString = opt.qs ? Object.keys(opt.qs).map(key => `${key}=${opt.qs[key]}`).join('&') : '';
var fullUrl = queryString ? (opt.url + '?' + queryString) : opt.url;
params.tracker && params.tracker.setParams({ reqUrl: fullUrl, accelerate: useAccelerate ? 'Y' : 'N' });
// 分块上传时给父级tracker设置url信息
Expand Down

0 comments on commit 6e4cfd3

Please sign in to comment.