Revision 54fd5c36 Classes/Container.m

b/Classes/Container.m
90 90
    container.quota = [[dict objectForKey:@"x_container_policy_quota"] integerValue];
91 91
        
92 92
    // metadata
93
    container.metadata = [NSMutableDictionary dictionary];
94
    if ([dict objectForKey:@"x_container_meta"]) {
95
        NSDictionary *metadata = [dict objectForKey:@"x_container_meta"];
96
        for (NSString *metadataKey in metadata) {
97
            NSString *metadataValue = [metadata objectForKey:metadataKey];
98
            [container.metadata setObject:metadataValue forKey:metadataKey];
99
        }
100
    }
101

  
93
    container.metadata = nil;
94
    
102 95
    // if count is in here, we're parsing from the object storage API
103 96
    if ([dict objectForKey:@"count"]) {
104 97
        container.count = [[dict objectForKey:@"count"] intValue];

Also available in: Unified diff