diff options
author | Kristopher Wuollett <klw@google.com> | 2016-02-03 21:38:44 -0500 |
---|---|---|
committer | Kristopher Wuollett <klw@google.com> | 2016-02-03 21:38:44 -0500 |
commit | 20b79e702db4cb811c67a1d9d199c0a462927fc5 (patch) | |
tree | 1a28508b4a5a3a0b4e75f1d496d6798c25c81cb8 /examples | |
parent | 99354c3cadf21a350fc259fcb235d3c34ba200c3 (diff) |
Updated user agent to be a host-level setting
Diffstat (limited to 'examples')
-rw-r--r-- | examples/objective-c/helloworld/main.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/objective-c/helloworld/main.m b/examples/objective-c/helloworld/main.m index b67380812b..755dce33df 100644 --- a/examples/objective-c/helloworld/main.m +++ b/examples/objective-c/helloworld/main.m @@ -43,7 +43,7 @@ static NSString * const kHostAddress = @"localhost:50051"; int main(int argc, char * argv[]) { @autoreleasepool { [GRPCCall useInsecureConnectionsForHost:kHostAddress]; - [GRPCCall setUserAgentPrefix:@"HelloWorld/1.0"]; + [GRPCCall setUserAgentPrefix:@"HelloWorld/1.0" forHost:kHostAddress]; HLWGreeter *client = [[HLWGreeter alloc] initWithHost:kHostAddress]; |