mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1107 from zacharydanger/rackspace-cdn-headers
Update public_url to handle new header casings from Rackspace
This commit is contained in:
commit
959f14613c
1 changed files with 3 additions and 3 deletions
|
@ -39,11 +39,11 @@ module Fog
|
|||
requires :key
|
||||
@public_url ||= begin
|
||||
begin response = connection.cdn.head_container(key)
|
||||
if response.headers['X-CDN-Enabled'] == 'True'
|
||||
if response.headers['X-Cdn-Enabled'] == 'True'
|
||||
if connection.rackspace_cdn_ssl == true
|
||||
response.headers['X-CDN-SSL-URI']
|
||||
response.headers['X-Cdn-Ssl-Uri']
|
||||
else
|
||||
cdn_cname || response.headers['X-CDN-URI']
|
||||
cdn_cname || response.headers['X-Cdn-Uri']
|
||||
end
|
||||
end
|
||||
rescue Fog::Service::NotFound
|
||||
|
|
Loading…
Add table
Reference in a new issue