|
|
|
@ -67,8 +67,8 @@ static void call_op(grpc_call_element *elem, grpc_call_element *from_elem, |
|
|
|
|
/* Send : prefixed headers, which have to be before any application
|
|
|
|
|
* layer headers. */ |
|
|
|
|
calld->sent_headers = 1; |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->method); |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->scheme); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->method)); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->scheme)); |
|
|
|
|
} |
|
|
|
|
grpc_call_next_op(elem, op); |
|
|
|
|
break; |
|
|
|
@ -76,12 +76,12 @@ static void call_op(grpc_call_element *elem, grpc_call_element *from_elem, |
|
|
|
|
if (!calld->sent_headers) { |
|
|
|
|
/* Send : prefixed headers, if we haven't already */ |
|
|
|
|
calld->sent_headers = 1; |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->method); |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->scheme); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->method)); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->scheme)); |
|
|
|
|
} |
|
|
|
|
/* Send non : prefixed headers */ |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->te_trailers); |
|
|
|
|
grpc_call_element_send_metadata(elem, channeld->content_type); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->te_trailers)); |
|
|
|
|
grpc_call_element_send_metadata(elem, grpc_mdelem_ref(channeld->content_type)); |
|
|
|
|
grpc_call_next_op(elem, op); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|