File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,11 @@ - (NSString *)URLEncodedStringValueWithEncoding:(NSStringEncoding)stringEncoding
160
160
[array enumerateObjectsUsingBlock: ^(id nestedValue, __unused NSUInteger idx, __unused BOOL *stop) {
161
161
[mutableQueryStringComponents addObjectsFromArray: AFQueryStringPairsFromKeyAndValue ([NSString stringWithFormat: @" %@ []" , key], nestedValue)];
162
162
}];
163
+ } else if ([value isKindOfClass: [NSSet class ]]) {
164
+ NSSet *set = value;
165
+ [set enumerateObjectsUsingBlock: ^(id obj, BOOL *stop) {
166
+ [mutableQueryStringComponents addObjectsFromArray: AFQueryStringPairsFromKeyAndValue (key, obj)];
167
+ }];
163
168
} else {
164
169
[mutableQueryStringComponents addObject: [[AFQueryStringPair alloc ] initWithField: key value: value]];
165
170
}
You can’t perform that action at this time.
0 commit comments