Skip to content

Instantly share code, notes, and snippets.

@dymx101
Created March 19, 2014 07:26
Show Gist options
  • Save dymx101/9636984 to your computer and use it in GitHub Desktop.
Save dymx101/9636984 to your computer and use it in GitHub Desktop.
change for AFNetworking 1.x muitlple parameters with the same name
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)];
}
}
@dymx101
Copy link
Author

dymx101 commented Mar 19, 2014

622, 588, 270, 8155, 897, 740, 032, 7653, 542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment