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

Fix small bug with returning public url in the case when cdn is used.

This commit is contained in:
Rupak Ganguly 2011-10-21 00:14:08 -04:00
parent ae9b2b7789
commit c89bc9a9c0

View file

@ -73,6 +73,8 @@ module Fog
response.headers['X-CDN-URI']
end
end
# escape the key to cover for special char. in container names
url = "#{connection.url}/#{connection.escape_name(key)}"
rescue Fog::Service::NotFound
nil
end