Fixed SWGApiClient.m's run-type type checking to allow NSArrays to be passed (for Swagger-generated methods that rely on List parameters in the HTTP body)

This commit is contained in:
SimonKaluza 2013-11-12 23:26:09 -05:00
parent 0d40a53e06
commit b373e4312e

View File

@ -280,7 +280,7 @@ static bool loggingEnabled = false;
}
if(body != nil) {
if([body isKindOfClass:[NSDictionary class]]){
if([body isKindOfClass:[NSDictionary class]] || [body isKindOfClass:[NSArray class]]){
[request setValue:requestContentType forHTTPHeaderField:@"Content-Type"];
}
else if ([body isKindOfClass:[SWGFile class]]) {}