From c6b301775c4a783dec72f3939e489bce8eadf8a5 Mon Sep 17 00:00:00 2001 From: Kristopher Wuollett Date: Sun, 31 Jan 2016 14:26:39 -0500 Subject: Add channel args to enable user agent string for Objective-C --- examples/objective-c/helloworld/main.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/objective-c') diff --git a/examples/objective-c/helloworld/main.m b/examples/objective-c/helloworld/main.m index a62f8362a2..f390b5a0f9 100644 --- a/examples/objective-c/helloworld/main.m +++ b/examples/objective-c/helloworld/main.m @@ -34,6 +34,7 @@ #import #import "AppDelegate.h" +#import #import #import @@ -42,6 +43,7 @@ static NSString * const kHostAddress = @"localhost:50051"; int main(int argc, char * argv[]) { @autoreleasepool { [GRPCCall useInsecureConnectionsForHost:kHostAddress]; + [GRPCCall usePrimaryUserAgent:@"HelloWorld/1.0" forHost:kHostAddress]; HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress]; -- cgit v1.2.3