Skip to content

Commit

Permalink
getRegionByRegionId UcHost -> getUcHostByDefaultProtocol()
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Jun 30, 2021
1 parent 65a8e32 commit dd1158f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/region.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func getRegionByRegionId(regionId string, credentials *auth.Credentials) (region
if v, ok := regionIdCache[regionId]; ok {
return v, nil
}
reqURL := fmt.Sprintf("%s/regions", UcHost)
reqURL := fmt.Sprintf("%s/regions", getUcHostByDefaultProtocol())
var ret ucRegionsRet
ctx := context.TODO()
qErr := client.DefaultClient.CredentialedCallWithForm(ctx, credentials, auth.TokenQiniu, &ret, "GET", reqURL, nil, nil)
Expand Down

0 comments on commit dd1158f

Please sign in to comment.