1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

Merge pull request #187 from ming-relax/master

add cn support for s3
This commit is contained in:
Wesley Beary 2015-10-19 09:30:44 -05:00
commit de2355ea97

View file

@ -205,6 +205,8 @@ module Fog
case region.to_s case region.to_s
when DEFAULT_REGION, '' when DEFAULT_REGION, ''
's3.amazonaws.com' 's3.amazonaws.com'
when 'cn-north-1'
's3.cn-north-1.amazonaws.com.cn'
else else
"s3-#{region}.amazonaws.com" "s3-#{region}.amazonaws.com"
end end