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

[aws:storage] path_style option availability

The path_style option should be available regardless of how an
endpoint override is specified
This commit is contained in:
David Illsley 2013-11-15 17:22:40 +00:00
parent 411d3eedc7
commit d44f6cc0db

View file

@ -413,6 +413,8 @@ module Fog
@connection_options = options[:connection_options] || {}
@persistent = options.fetch(:persistent, false)
@path_style = options[:path_style] || false
if @endpoint = options[:endpoint]
endpoint = URI.parse(@endpoint)
@host = endpoint.host
@ -423,7 +425,6 @@ module Fog
@host = options[:host] || region_to_host(@region)
@scheme = options[:scheme] || DEFAULT_SCHEME
@port = options[:port] || DEFAULT_SCHEME_PORT[@scheme]
@path_style = options[:path_style] || false
end
end