-
- cookieValue = [_cookie value];
- if ([cookieValue isKindOfClass:[NSArray class]]) {
- if ([cookieValue count] == 0)
- cookieValue = @"";
- else if ([cookieValue count] == 1)
- cookieValue = [[cookieValue objectAtIndex:0] stringValue];
- else {
- [self logWithFormat:
- @"got %i values for cookie '%@', using first only.",
- [cookieValue count],
- [_cookie cookieName]];
- cookieValue = [[cookieValue objectAtIndex:0] stringValue];
- }
+ cookieValue = [_cookie value];
+ if ([cookieValue isKindOfClass:[NSArray class]]) {
+ if ([cookieValue count] == 0)
+ cookieValue = @"";
+ else if ([cookieValue count] == 1)
+ cookieValue = [[cookieValue objectAtIndex:0] stringValue];
+ else {
+ [self logWithFormat:
+ @"got %d values for cookie '%@', using first only: %@",
+ [cookieValue count],
+ [_cookie cookieName],
+ [cookieValue componentsJoinedByString:@","]];
+ cookieValue = [[cookieValue objectAtIndex:0] stringValue];