File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments