Merge pull request #2325 from jcanizales/be-ios6-compatible

Don’t use containsString as it’s iOS 8 only
pull/2331/head
Michael Lumish 10 years ago
commit 8311a0b548
  1. 2
      src/objective-c/GRPCClient/private/GRPCChannel.m

@ -60,7 +60,7 @@
}
- (instancetype)initWithHost:(NSString *)host {
if (![host containsString:@"://"]) {
if (![host rangeOfString:@"://"].length) {
// No scheme provided; assume https.
host = [@"https://" stringByAppendingString:host];
}

Loading…
Cancel
Save