diff options
author | Yang Gao <yangg@google.com> | 2015-02-10 00:22:46 -0800 |
---|---|---|
committer | Yang Gao <yangg@google.com> | 2015-02-10 00:22:46 -0800 |
commit | b0e7275501c1f62a7f682fb56c6d916681a69d3a (patch) | |
tree | 920869b66224e975965777c147d9dfd11afda0be | |
parent | acbb2b8d4a31b63e8ef60714a30932d90b2d6885 (diff) | |
parent | de343164f2357658720c18c1d22fd20ba444e5bc (diff) |
Merge pull request #454 from ctiller/fix3
Return OK on server if there's no explicit status set
-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) { |