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

[rackspace|cdn] more refactoring of cdn

This commit is contained in:
Kyle Rames 2013-02-12 07:41:27 -06:00
parent b2657de41a
commit 21a4efe9a2

View file

@ -52,8 +52,9 @@ module Fog
private
def url_from_headers(headers, cdn_cname)
return headers['X-Cdn-Ssl-Uri'] if ssl?
cdn_cname || headers['X-Cdn-Uri']
return nil unless headers['X-Cdn-Enabled']
return headers['X-Cdn-Ssl-Uri'] if ssl?
cdn_cname || headers['X-Cdn-Uri']
end
end