Created
March 19, 2014 07:26
-
-
Save dymx101/9636984 to your computer and use it in GitHub Desktop.
change for AFNetworking 1.x muitlple parameters with the same name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else if ([value isKindOfClass:[NSArray class]]) { | |
NSArray *array = value; | |
for (id nestedValue in array) { | |
// [mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue([NSString stringWithFormat:@"%@[]", key], nestedValue)]; | |
// NOTICE: the following line is modified by Daniel Dong, the original code is above (commented). | |
[mutableQueryStringComponents addObjectsFromArray:AFQueryStringPairsFromKeyAndValue([NSString stringWithFormat:@"%@", key], nestedValue)]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
622, 588, 270, 8155, 897, 740, 032, 7653, 542