File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cos-nodejs-sdk-v5" ,
3
- "version" : " 2.14.3 " ,
3
+ "version" : " 2.14.4 " ,
4
4
"description" : " cos nodejs sdk v5" ,
5
5
"main" : " index.js" ,
6
6
"types" : " index.d.ts" ,
Original file line number Diff line number Diff line change @@ -4034,6 +4034,7 @@ function submitRequest(params, callback) {
4034
4034
networkError,
4035
4035
} ) ;
4036
4036
params . SwitchHost = switchHost ;
4037
+ params . retry = true ;
4037
4038
next ( tryTimes + 1 ) ;
4038
4039
} else {
4039
4040
if ( err && params . Action === 'name/cos:UploadPart' ) {
@@ -4127,6 +4128,9 @@ function _submitRequest(params, callback) {
4127
4128
4128
4129
// 清理 undefined 和 null 字段
4129
4130
opt . headers && ( opt . headers = util . clearKey ( opt . headers ) ) ;
4131
+ if ( params . retry ) {
4132
+ opt . headers [ 'x-cos-sdk-retry' ] = true ;
4133
+ }
4130
4134
opt = util . clearKey ( opt ) ;
4131
4135
4132
4136
var Ip = this . options . Ip ;
You can’t perform that action at this time.
0 commit comments