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:
parent
411d3eedc7
commit
d44f6cc0db
1 changed files with 2 additions and 1 deletions
|
@ -413,6 +413,8 @@ module Fog
|
||||||
@connection_options = options[:connection_options] || {}
|
@connection_options = options[:connection_options] || {}
|
||||||
@persistent = options.fetch(:persistent, false)
|
@persistent = options.fetch(:persistent, false)
|
||||||
|
|
||||||
|
@path_style = options[:path_style] || false
|
||||||
|
|
||||||
if @endpoint = options[:endpoint]
|
if @endpoint = options[:endpoint]
|
||||||
endpoint = URI.parse(@endpoint)
|
endpoint = URI.parse(@endpoint)
|
||||||
@host = endpoint.host
|
@host = endpoint.host
|
||||||
|
@ -423,7 +425,6 @@ module Fog
|
||||||
@host = options[:host] || region_to_host(@region)
|
@host = options[:host] || region_to_host(@region)
|
||||||
@scheme = options[:scheme] || DEFAULT_SCHEME
|
@scheme = options[:scheme] || DEFAULT_SCHEME
|
||||||
@port = options[:port] || DEFAULT_SCHEME_PORT[@scheme]
|
@port = options[:port] || DEFAULT_SCHEME_PORT[@scheme]
|
||||||
@path_style = options[:path_style] || false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue