Revision 54fd5c36 Classes/StorageObject.m

b/Classes/StorageObject.m
64 64
    object.lastModified = [ComputeModel dateFromString:[dict objectForKey:@"last_modified"]];
65 65
    object.publicURI = [dict objectForKey:@"x_object_public"];
66 66
    object.sharing = [dict objectForKey:@"x_object_sharing"];
67
    
68
    object.metadata = [NSMutableDictionary dictionary];
69
    if ([dict objectForKey:@"x_object_meta"]) {
70
        NSDictionary *metadata = [dict objectForKey:@"x_object_meta"];
71
        for (NSString *metadataKey in metadata) {
72
            NSString *metadataValue = [metadata objectForKey:metadataKey];
73
            [object.metadata setObject:metadataValue forKey:metadataKey];
74
        }
75
    }
76
        
67
    object.metadata = nil;       
77 68
    return object;
78 69
}
79 70

  

Also available in: Unified diff