diff options
author | murgatroid99 <mlumish@google.com> | 2015-08-19 15:00:24 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2015-08-19 15:00:24 -0700 |
commit | fe0afc2084be554309ad96b1389a252916baec87 (patch) | |
tree | 37a2c97736f77cca1371585d612f9db269cf4167 /src/node | |
parent | c2fdfcf0cdc47827f0ae4be80e5e2b5c77e0a508 (diff) | |
parent | fa266cadeb2486c831c91f90ba9c27e987697af8 (diff) |
Merge branch 'node_test_fixes' into node_server_creds_multiple_pairs
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/src/client.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/node/src/client.js b/src/node/src/client.js index 48fe0dd3b7..7b7eae51d2 100644 --- a/src/node/src/client.js +++ b/src/node/src/client.js @@ -280,7 +280,9 @@ function makeUnaryRequestFunction(method, serialize, deserialize) { } var client_batch = {}; var message = serialize(argument); - message.grpcWriteFlags = options.flags; + if (options) { + message.grpcWriteFlags = options.flags; + } client_batch[grpc.opType.SEND_INITIAL_METADATA] = metadata; client_batch[grpc.opType.SEND_MESSAGE] = message; client_batch[grpc.opType.SEND_CLOSE_FROM_CLIENT] = true; @@ -416,7 +418,9 @@ function makeServerStreamRequestFunction(method, serialize, deserialize) { } var start_batch = {}; var message = serialize(argument); - message.grpcWriteFlags = options.flags; + if (options) { + message.grpcWriteFlags = options.flags; + } start_batch[grpc.opType.SEND_INITIAL_METADATA] = metadata; start_batch[grpc.opType.RECV_INITIAL_METADATA] = true; start_batch[grpc.opType.SEND_MESSAGE] = message; |