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

set defaults to be scheme http, port 80, as that is what internet_archive supports

This commit is contained in:
Andrew Kuklewicz 2013-01-31 15:11:43 -05:00
parent dbc1869be8
commit 6414499f4d

View file

@ -281,8 +281,8 @@ module Fog
end
@path = options[:path] || '/'
@persistent = options.fetch(:persistent, false)
@port = options[:port] || 443
@scheme = options[:scheme] || 'https'
@port = options[:port] || 80
@scheme = options[:scheme] || 'http'
end
@connection = Fog::Connection.new("#{@scheme}://#{@host}:#{@port}#{@path}", @persistent, @connection_options)
end