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) {
80508050
80518051var getSignHost = function ( opt ) {
80528052 if ( ! opt . Bucket || ! opt . Region ) return '' ;
8053- var region = opt . Region ;
8054- if ( this . options . UseAccelerate ) {
8055- region = 'accelerate' ;
8056- }
80578053 var url = opt . Url || getUrl ( {
80588054 ForcePathStyle : this . options . ForcePathStyle ,
80598055 protocol : this . options . Protocol ,
80608056 domain : this . options . Domain ,
80618057 bucket : opt . Bucket ,
8062- region : region
8058+ region : this . options . UseAccelerate ? 'accelerate' : opt . Region
80638059 } ) ;
80648060 var urlHost = url . replace ( / ^ h t t p s ? : \/ \/ ( [ ^ / ] + ) ( \/ .* ) ? $ / , '$1' ) ;
80658061 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) {
31843184
31853185var getSignHost = function ( opt ) {
31863186 if ( ! opt . Bucket || ! opt . Region ) return '' ;
3187- var region = opt . Region ;
3188- if ( this . options . UseAccelerate ) {
3189- region = 'accelerate' ;
3190- }
31913187 var url = opt . Url || getUrl ( {
31923188 ForcePathStyle : this . options . ForcePathStyle ,
31933189 protocol : this . options . Protocol ,
31943190 domain : this . options . Domain ,
31953191 bucket : opt . Bucket ,
3196- region : region ,
3192+ region : this . options . UseAccelerate ? 'accelerate' : opt . Region ,
31973193 } ) ;
31983194 var urlHost = url . replace ( / ^ h t t p s ? : \/ \/ ( [ ^ / ] + ) ( \/ .* ) ? $ / , '$1' ) ;
31993195 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