Skip to content

Commit a613fbd

Browse files
committed
修改参数名 StrictSsl
1 parent 555bc7f commit a613fbd

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.5.2",
3+
"version": "2.5.3",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"scripts": {

sdk/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,8 +2387,8 @@ function _submitRequest(params, callback) {
23872387
return pre + Ip;
23882388
});
23892389
}
2390-
if (this.options.StrictSSL !== true) {
2391-
opt.strictSSL = this.options.StrictSSL;
2390+
if (this.options.StrictSsl !== true) {
2391+
opt.strictSSL = this.options.StrictSsl;
23922392
}
23932393
if (this.options.Proxy) {
23942394
opt.proxy = this.options.Proxy;

sdk/cos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var defaultOptions = {
3434
UploadIdCacheLimit: 500,
3535
Proxy: '',
3636
Ip: '',
37-
StrictSSL: true,
37+
StrictSsl: true,
3838
UserAgent: '',
3939
};
4040

sdk/task.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ var initTask = function (cos) {
6363
startNextTask(cos);
6464
task.callback && task.callback(err, data);
6565
if (task.state === 'success') {
66+
delete task.params.UploadData;
67+
delete task.params.Body;
6668
delete task.params;
6769
delete task.callback;
6870
}
@@ -95,6 +97,8 @@ var initTask = function (cos) {
9597
startNextTask(cos);
9698
}
9799
if (switchToState === 'canceled') {
100+
delete task.params.UploadData;
101+
delete task.params.Body;
98102
delete task.params;
99103
delete task.callback;
100104
}

0 commit comments

Comments
 (0)