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:
parent
b2657de41a
commit
21a4efe9a2
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue