diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-09 23:37:22 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-09 23:37:22 -0800 |
commit | de343164f2357658720c18c1d22fd20ba444e5bc (patch) | |
tree | 920869b66224e975965777c147d9dfd11afda0be | |
parent | acbb2b8d4a31b63e8ef60714a30932d90b2d6885 (diff) |
Return OK on server if there's no explicit status set
Fixes #451
-rw-r--r-- | src/core/surface/call.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 37ae42676d..ee8e8588c7 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -404,7 +404,11 @@ static void get_final_status(grpc_call *call, grpc_ioreq_data out) { return; } } - out.recv_status.set_value(GRPC_STATUS_UNKNOWN, out.recv_status.user_data); + if (call->is_client) { + out.recv_status.set_value(GRPC_STATUS_UNKNOWN, out.recv_status.user_data); + } else { + out.recv_status.set_value(GRPC_STATUS_OK, out.recv_status.user_data); + } } static void get_final_details(grpc_call *call, grpc_ioreq_data out) { |