Don’t use containsString as it’s iOS 8 only

pull/2325/head
Jorge Canizales 10 years ago
parent 44a4ef3b5a
commit c14c3191b7
  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