From 3590079d2f691db771670e55003e208a3d091060 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Sun, 12 Dec 2021 15:28:31 +0100 Subject: update third-party libs --- src/test/java/at/gv/util/demo/ZuseSSLTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/test/java/at/gv/util/demo/ZuseSSLTest.java b/src/test/java/at/gv/util/demo/ZuseSSLTest.java index 516c228..cecbc19 100644 --- a/src/test/java/at/gv/util/demo/ZuseSSLTest.java +++ b/src/test/java/at/gv/util/demo/ZuseSSLTest.java @@ -30,7 +30,6 @@ import org.apache.http.ssl.PrivateKeyDetails; import org.apache.http.ssl.PrivateKeyStrategy; import org.apache.http.ssl.SSLContextBuilder; import org.apache.http.util.EntityUtils; -import org.apache.log4j.lf5.util.StreamUtils; import at.gv.util.xsd.szr.pvp.sec.Security; @@ -132,10 +131,11 @@ public class ZuseSSLTest { System.out.println("HTTP StatusCode: " + response.getStatusLine().getStatusCode()); - if (response.getEntity().getContent() != null ) - System.out.println("Body: " + org.apache.commons.codec.binary.StringUtils.newStringUtf8(StreamUtils.getBytes(response.getEntity().getContent()))); - - + if (response.getEntity().getContent() != null ) { + System.out.println("Body: " + + EntityUtils.toString(response.getEntity())); + + } System.out.println("Test finished"); } catch (Exception e) { -- cgit v1.2.3