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

add cn support for s3

This commit is contained in:
huming 2015-10-01 10:32:14 +08:00
parent 27ec738ffe
commit ec8b515009

View file

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