Revision ff263008 asi-http-request-with-pithos/Classes/Pithos/ASIPithosRequest.m
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosRequest.m | ||
---|---|---|
382 | 382 |
for (NSString *key in [[self responseHeaders] keyEnumerator]) { |
383 | 383 |
NSRange prefixRange = [key rangeOfString:prefix]; |
384 | 384 |
if (prefixRange.location == 0) { |
385 |
[headersDictionary setObject:[[self responseHeaders] objectForKey:key] forKey:[key substringFromIndex:prefix.length]]; |
|
385 |
[headersDictionary setObject:[[self responseHeaders] objectForKey:key] |
|
386 |
forKey:[[[key substringFromIndex:prefix.length] |
|
387 |
stringByReplacingOccurrencesOfString:@"-" withString:@"_"] |
|
388 |
lowercaseString]]; |
|
386 | 389 |
} |
387 | 390 |
} |
388 | 391 |
return headersDictionary; |
Also available in: Unified diff