From de343164f2357658720c18c1d22fd20ba444e5bc Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 9 Feb 2015 23:37:22 -0800 Subject: [PATCH] Return OK on server if there's no explicit status set Fixes #451 --- src/core/surface/call.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 37ae42676d9..ee8e8588c70 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) {