Log the HTTP status code of the decoded OHTTP response. Status code is not part of QUICHE's BHTTP response header fields. PiperOrigin-RevId: 814432348
diff --git a/quiche/quic/masque/masque_ohttp_client_bin.cc b/quiche/quic/masque/masque_ohttp_client_bin.cc index f7185de..9fa7868 100644 --- a/quiche/quic/masque/masque_ohttp_client_bin.cc +++ b/quiche/quic/masque/masque_ohttp_client_bin.cc
@@ -129,7 +129,8 @@ BinaryHttpResponse::Create(ohttp_response->GetPlaintextData()); if (binary_response.ok()) { QUICHE_LOG(INFO) << "Successfully decoded OHTTP response:"; - for (const quiche::BinaryHttpMessage::Field &field : + QUICHE_LOG(INFO) << "Status: " << binary_response->status_code(); + for (const quiche::BinaryHttpMessage::Field& field : binary_response->GetHeaderFields()) { QUICHE_LOG(INFO) << field.name << ": " << field.value; }