diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java b/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java index 4c2028f7b..b96aa9951 100644 --- a/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java +++ b/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/SimpleBody.java @@ -95,5 +95,11 @@ public final class SimpleBody { return bodyAsBytes != null; } + @Override + public String toString() { + return "content length=" + (bodyAsBytes != null ? bodyAsBytes.length : "chunked") + + ", content type=" + contentType; + } + }