diff options
author | 2016-12-09 09:53:49 -0800 | |
---|---|---|
committer | 2016-12-09 09:53:49 -0800 | |
commit | b9a5e073731d819091da4a783191a6a220db3a67 (patch) | |
tree | ca52a7af876e0e19f1f5cc89c4a4faa1f6c21eee /src/csharp/ext/grpc_csharp_ext.c | |
parent | 1bcdf17c11721bce69fb383940dc623eef81fc7b (diff) |
Continue updating C#
Diffstat (limited to 'src/csharp/ext/grpc_csharp_ext.c')
-rw-r--r-- | src/csharp/ext/grpc_csharp_ext.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/csharp/ext/grpc_csharp_ext.c b/src/csharp/ext/grpc_csharp_ext.c index ee1fe0b494..618522a3b5 100644 --- a/src/csharp/ext/grpc_csharp_ext.c +++ b/src/csharp/ext/grpc_csharp_ext.c @@ -402,8 +402,10 @@ grpcsharp_channel_create_call(grpc_channel *channel, grpc_call *parent_call, grpc_completion_queue *cq, const char *method, const char *host, gpr_timespec deadline) { - return grpc_channel_create_call(channel, parent_call, propagation_mask, cq, - method, host, deadline, NULL); + grpc_slice method_slice = grpc_slice_from_copied_string(method); + grpc_slice host_slice = host == NULL ? grpc_empty_string() : grpc_slice_from_copied_string(host); + grpc_call *grpc_channel_create_call(channel, parent_call, propagation_mask, cq, + method_slice, host_slice, deadline, NULL); } GPR_EXPORT grpc_connectivity_state GPR_CALLTYPE |