Skip to content

Commit

Permalink
Revert part of #965 to fix #1103
Browse files Browse the repository at this point in the history
  • Loading branch information
ncelerier authored and rohanKanojia committed Jun 26, 2021
1 parent 3f2daa9 commit b910894
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,18 @@ private void parseResponse(HttpResponse response) throws LogCallback.DoneExcepti
throw new LogCallback.DoneException();
}

try (InputStream is = response.getEntity().getContent()) {
final InputStream is = response.getEntity().getContent();

try {
while (true) {
if (!readStreamFrame(is)) {
return;
}
}
} finally {
if ((is != null) && (is.available() > 0)) {
is.close();
}
}
}

Expand Down

0 comments on commit b910894

Please sign in to comment.