aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCHost.m
diff options
context:
space:
mode:
authorGravatar thassss <tommy@vsco.co>2017-06-26 13:34:40 -0700
committerGravatar thassss <tommy@vsco.co>2017-06-26 13:34:40 -0700
commita139bfdc4c8c785e05dc6e8ac8ccbd50a92b2f89 (patch)
treeac2322fc2b0bb0b6bcd523c9daf4e7b468e6a220 /src/objective-c/GRPCClient/private/GRPCHost.m
parent8bec6a93163861e467005a23c997eb93b793710b (diff)
Expose :authority pseudo-header to Obj-C API.
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCHost.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCHost.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m
index 5b4d647a1a..5658150b33 100644
--- a/src/objective-c/GRPCClient/private/GRPCHost.m
+++ b/src/objective-c/GRPCClient/private/GRPCHost.m
@@ -120,6 +120,7 @@ static GRPCConnectivityMonitor *connectivityMonitor = nil;
}
- (nullable grpc_call *)unmanagedCallWithPath:(NSString *)path
+ serverName:(nullable NSString *)serverName
completionQueue:(GRPCCompletionQueue *)queue {
GRPCChannel *channel;
// This is racing -[GRPCHost disconnect].
@@ -129,7 +130,8 @@ static GRPCConnectivityMonitor *connectivityMonitor = nil;
}
channel = _channel;
}
- return [channel unmanagedCallWithPath:path completionQueue:queue];
+ NSString *name = serverName ? serverName : _address;
+ return [channel unmanagedCallWithPath:path serverName:name completionQueue:queue];
}
- (BOOL)setTLSPEMRootCerts:(nullable NSString *)pemRootCerts