fix grpc_transport_stream_op_batch_string() to handle binary metadata (#28609)

pull/28615/head
Mark D. Roth 3 years ago committed by GitHub
parent aeea02fab8
commit b3446680af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/transport/transport_op_string.cc

@ -25,6 +25,7 @@
#include <vector>
#include "absl/strings/escaping.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
@ -46,7 +47,7 @@ static void put_metadata_list(const grpc_metadata_batch& md,
md.Log([out, &first](absl::string_view key, absl::string_view value) {
if (!first) out->push_back(", ");
first = false;
out->push_back(absl::StrCat(key, "=", value));
out->push_back(absl::StrCat(absl::CEscape(key), "=", absl::CEscape(value)));
});
}

Loading…
Cancel
Save