From cc38f0bb2e39dd6ab0fa5b2667b8263bb7be2ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Brand=C3=A3o?= Date: Fri, 24 Nov 2023 18:13:06 -0300 Subject: [PATCH] fix http client execute multiple server responses error --- src/http.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.rs b/src/http.rs index 2995a3b..b1fc617 100644 --- a/src/http.rs +++ b/src/http.rs @@ -213,7 +213,8 @@ impl Client { response.results ); } - if response.results.len() > 1 { + if response.results.len() > 2 { + // One with actual results, one closing the stream anyhow::bail!( "Unexpected multiple responses from server: {:?}", response.results