Revision cc176feb asi-http-request-with-pithos/Classes/CloudFiles/ASICloudFilesRequest.m
b/asi-http-request-with-pithos/Classes/CloudFiles/ASICloudFilesRequest.m | ||
---|---|---|
69 | 69 |
NSDictionary *responseHeaders = [request responseHeaders]; |
70 | 70 |
authToken = [responseHeaders objectForKey:@"X-Auth-Token"]; |
71 | 71 |
storageURL = [responseHeaders objectForKey:@"X-Storage-Url"]; |
72 |
cdnManagementURL = [responseHeaders objectForKey:@"X-Cdn-Management-Url"]; |
|
72 |
cdnManagementURL = [responseHeaders objectForKey:@"X-CDN-Management-Url"]; |
|
73 |
|
|
74 |
// there is a bug in the Cloud Files API for some older accounts that causes |
|
75 |
// the CDN URL to come back in a slightly different header |
|
76 |
if (!cdnManagementURL) { |
|
77 |
cdnManagementURL = [responseHeaders objectForKey:@"X-Cdn-Management-Url"]; |
|
78 |
} |
|
73 | 79 |
} |
74 | 80 |
[accessDetailsLock unlock]; |
75 | 81 |
return [request error]; |
Also available in: Unified diff