Skip to content

Commit

Permalink
Remove all references to IOUtils outside of integrationTest
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 12, 2023
1 parent 9ceeb81 commit 28150d3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.KeyStore;
import java.util.Arrays;
import java.util.Collections;
Expand Down Expand Up @@ -323,7 +322,7 @@ public HttpResponse(CloseableHttpResponse inner) throws IllegalStateException, I
if (entity == null) { // head request does not have a entity
this.body = "";
} else {
this.body = IOUtils.toString(entity.getContent(), StandardCharsets.UTF_8);
this.body = CharStreams.toString(new InputStreamReader(entity.getContent(), Charsets.UTF_8));
}
this.header = inner.getAllHeaders();
this.statusCode = inner.getStatusLine().getStatusCode();
Expand Down

0 comments on commit 28150d3

Please sign in to comment.