aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-08 21:33:40 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-08 21:33:40 -0700
commit5e2f7c472a6f1ed4b174eb8591b4924093d43607 (patch)
tree6459f39b1290c06d17c8cbc370798c7b53d3c741 /src/core/lib/transport
parent97cbec1c98b8660e6fd7ba2c1a2d23dff8e9030d (diff)
Fix objective c unit test and debugging functions
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/transport_op_string.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport_op_string.cc b/src/core/lib/transport/transport_op_string.cc
index 8c7db642a5..736c2b1777 100644
--- a/src/core/lib/transport/transport_op_string.cc
+++ b/src/core/lib/transport/transport_op_string.cc
@@ -48,7 +48,13 @@ static void put_metadata_list(gpr_strvec* b, grpc_metadata_batch md) {
grpc_linked_mdelem* m;
for (m = md.list.head; m != nullptr; m = m->next) {
if (m != md.list.head) gpr_strvec_add(b, gpr_strdup(", "));
- put_metadata(b, m->md);
+ if (is_valid_mdelem_index(m->md_index)) {
+ char* tmp;
+ gpr_asprintf(&tmp, "index=%d" , m->md_index);
+ gpr_strvec_add(b, gpr_strdup("index="));
+ } else {
+ put_metadata(b, m->md);
+ }
}
if (md.deadline != GRPC_MILLIS_INF_FUTURE) {
char* tmp;