Index: net/tools/quic/quic_client_bin.cc |
diff --git a/net/tools/quic/quic_client_bin.cc b/net/tools/quic/quic_client_bin.cc |
index 26820af6e5d2f018f06874aa21ab375674d235e6..1d6d6ec918c6c29bcfb47fe624da0e072eda3323 100644 |
--- a/net/tools/quic/quic_client_bin.cc |
+++ b/net/tools/quic/quic_client_bin.cc |
@@ -324,9 +324,8 @@ int main(int argc, char* argv[]) { |
cout << "headers:" << header_block.DebugString(); |
if (!FLAGS_body_hex.empty()) { |
// Print the user provided hex, rather than binary body. |
- cout << "body hex: " << FLAGS_body_hex << endl; |
- cout << "body ascii: " << net::QuicUtils::BinaryToAscii( |
- net::QuicUtils::HexDecode(FLAGS_body_hex)) |
+ cout << "body:\n" |
+ << net::QuicUtils::HexDump(net::QuicUtils::HexDecode(FLAGS_body_hex)) |
<< endl; |
} else { |
cout << "body: " << body << endl; |
@@ -337,10 +336,7 @@ int main(int argc, char* argv[]) { |
string response_body = client.latest_response_body(); |
if (!FLAGS_body_hex.empty()) { |
// Assume response is binary data. |
- cout << "body hex: " << net::QuicUtils::HexEncode(response_body) |
- << endl; |
- cout << "body ascii: " << net::QuicUtils::BinaryToAscii(response_body) |
- << endl; |
+ cout << "body:\n" << net::QuicUtils::HexDump(response_body) << endl; |
} else { |
cout << "body: " << response_body << endl; |
} |