forked from loafle/openapi-generator-original
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:
parent
0d40a53e06
commit
b373e4312e
@ -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]]) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user