Skip to content

Commit

Permalink
Merge pull request #60 from FeBrandao/main
Browse files Browse the repository at this point in the history
fix: http client execute multiple server responses error
  • Loading branch information
psarna committed Nov 24, 2023
2 parents 95ad989 + cc38f0b commit 85522e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 85522e7

Please sign in to comment.