mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Add support for cname buckets
This commit is contained in:
parent
cba35fb5be
commit
ba6a4cb454
1 changed files with 18 additions and 14 deletions
|
@ -256,6 +256,9 @@ module Fog
|
|||
if params[:bucket_name]
|
||||
bucket_name = params[:bucket_name]
|
||||
|
||||
if params[:bucket_cname]
|
||||
host = bucket_name
|
||||
else
|
||||
path_style = params.fetch(:path_style, @path_style)
|
||||
if !path_style
|
||||
if COMPLIANT_BUCKET_NAMES !~ bucket_name
|
||||
|
@ -273,6 +276,7 @@ module Fog
|
|||
host = [bucket_name, host].join('.')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
ret = params.merge({
|
||||
:scheme => scheme,
|
||||
|
|
Loading…
Reference in a new issue