mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws][storage] warn when following redirects
This commit is contained in:
parent
99ba20f411
commit
e0a5341534
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ module Fog
|
|||
|
||||
if response.status == 307
|
||||
uri = URI.parse(response.headers['Location'])
|
||||
Formatador.display_line("[yellow][WARN] fog: followed redirect to #{uri.host}, connecting to the matching region will be more performant[/]")
|
||||
response = Fog::Connection.new("#{@scheme}://#{uri.host}:#{@port}", false).request(original_params, &block)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue