From 05faa10f4b479850b3892ed1e02336a99e527071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Sun, 3 Apr 2022 19:08:20 +0200 Subject: [PATCH] http load test: on response deserialize failure, print headers too --- aquatic_http_load_test/src/network.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aquatic_http_load_test/src/network.rs b/aquatic_http_load_test/src/network.rs index fdae866..eb0a8b4 100644 --- a/aquatic_http_load_test/src/network.rs +++ b/aquatic_http_load_test/src/network.rs @@ -213,9 +213,7 @@ impl Connection { } if let Some(body_start_index) = opt_body_start_index { - let interesting_bytes = &interesting_bytes[body_start_index..]; - - match Response::from_bytes(interesting_bytes) { + match Response::from_bytes(&interesting_bytes[body_start_index..]) { Ok(response) => { match response { Response::Announce(_) => {