File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -8050,16 +8050,12 @@ function getUrl(params) {
8050
8050
8051
8051
var getSignHost = function ( opt ) {
8052
8052
if ( ! opt . Bucket || ! opt . Region ) return '' ;
8053
- var region = opt . Region ;
8054
- if ( this . options . UseAccelerate ) {
8055
- region = 'accelerate' ;
8056
- }
8057
8053
var url = opt . Url || getUrl ( {
8058
8054
ForcePathStyle : this . options . ForcePathStyle ,
8059
8055
protocol : this . options . Protocol ,
8060
8056
domain : this . options . Domain ,
8061
8057
bucket : opt . Bucket ,
8062
- region : region
8058
+ region : this . options . UseAccelerate ? 'accelerate' : opt . Region
8063
8059
} ) ;
8064
8060
var urlHost = url . replace ( / ^ h t t p s ? : \/ \/ ( [ ^ / ] + ) ( \/ .* ) ? $ / , '$1' ) ;
8065
8061
var standardHostReg = new RegExp ( '^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$' ) ;
Original file line number Diff line number Diff line change @@ -3184,16 +3184,12 @@ function getUrl(params) {
3184
3184
3185
3185
var getSignHost = function ( opt ) {
3186
3186
if ( ! opt . Bucket || ! opt . Region ) return '' ;
3187
- var region = opt . Region ;
3188
- if ( this . options . UseAccelerate ) {
3189
- region = 'accelerate' ;
3190
- }
3191
3187
var url = opt . Url || getUrl ( {
3192
3188
ForcePathStyle : this . options . ForcePathStyle ,
3193
3189
protocol : this . options . Protocol ,
3194
3190
domain : this . options . Domain ,
3195
3191
bucket : opt . Bucket ,
3196
- region : region ,
3192
+ region : this . options . UseAccelerate ? 'accelerate' : opt . Region ,
3197
3193
} ) ;
3198
3194
var urlHost = url . replace ( / ^ h t t p s ? : \/ \/ ( [ ^ / ] + ) ( \/ .* ) ? $ / , '$1' ) ;
3199
3195
var standardHostReg = new RegExp ( '^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$' ) ;
You can’t perform that action at this time.
0 commit comments