We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0520e68 + 4baa7c0 commit 23696c5Copy full SHA for 23696c5
modules/swagger-codegen/src/main/resources/objc/ApiClient-body.mustache
@@ -136,7 +136,8 @@ static void (^reachabilityChangeBlock)(int);
136
NSMutableArray *lowerAccepts = [[NSMutableArray alloc] initWithCapacity:[accepts count]];
137
for (NSString *string in accepts) {
138
NSString * lowerAccept = [string lowercaseString];
139
- if ([lowerAccept containsString:@"application/json"]) {
+ // use rangeOfString instead of containsString for iOS 7 support
140
+ if ([lowerAccept rangeOfString:@"application/json"].location != NSNotFound) {
141
return @"application/json";
142
}
143
[lowerAccepts addObject:lowerAccept];
0 commit comments