Revision 38d59b6c Classes/StorageObject.m

b/Classes/StorageObject.m
64 64
    object.contentType = [dict objectForKey:@"content_type"];
65 65
    object.lastModified = [ComputeModel dateFromString:[dict objectForKey:@"last_modified"]];
66 66
    
67
    object.metadata = [NSMutableDictionary dictionary];
68
    for (NSString *key in dict) {
69
        if ([key hasPrefix:@"x_object_meta_"]) {
70
            NSString *metadataKey = [key substringFromIndex:14];
71
            [object.metadata setObject:[dict objectForKey:key] forKey:metadataKey];
72
        }
73
    }
74
        
67 75
    return object;
68 76
}
69 77

  

Also available in: Unified diff