1
0
Fork 0
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:
geemus 2010-09-27 20:44:46 -07:00
parent 99ba20f411
commit e0a5341534

View file

@ -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