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

Merge pull request #1550 from brianhartsock/master

[rackspace|lb] Fixed issue with paths having two slashes
This commit is contained in:
Brian Hartsock 2013-02-07 08:16:59 -08:00
commit 1052a24857

View file

@ -110,7 +110,7 @@ module Fog
uri = URI.parse(options[:rackspace_lb_endpoint] || DFW_ENDPOINT)
@host = uri.host
@persistent = options[:persistent] || false
@path = uri.path
@path = uri.path.end_with?('/') ? uri.path.chop : uri.path
@port = uri.port
@scheme = uri.scheme
@ -156,7 +156,6 @@ module Fog
account_id = credentials['X-Server-Management-Url'].match(/.*\/([\d]+)$/)[1]
@path = "#{@path}/#{account_id}"
end
end
end
end