diff options
author | murgatroid99 <mlumish@google.com> | 2015-07-22 09:58:38 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-07-22 09:58:38 -0700 |
commit | d601ff5e9d6a2f74d9ead98c54ea6844cb087765 (patch) | |
tree | f6b1e178feaff589ff4f4d1564a09a544fc2887d /src/node | |
parent | 198a1ad966cb38ccc1697961914fa5b8b854df2f (diff) |
Fixed setting user-agent string
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/src/client.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js index 06a0f3637f..da6327b432 100644 --- a/src/node/src/client.js +++ b/src/node/src/client.js @@ -521,9 +521,9 @@ function makeClientConstructor(methods, serviceName) { if (!options) { options = {}; } - options.GRPC_ARG_PRIMARY_USER_AGENT_STRING = 'grpc-node/' + version; - this.server_address = address.replace(/\/$/, ''); + options['grpc.primary_user_agent'] = 'grpc-node/' + version; this.channel = new grpc.Channel(address, options); + this.server_address = address.replace(/\/$/, ''); this.auth_uri = this.server_address + '/' + serviceName; this.updateMetadata = updateMetadata; } |