imbyungjun commented on a change in pull request #284:
URL: 
https://github.com/apache/httpcomponents-core/pull/284#discussion_r617995479



##########
File path: 
httpcore5/src/main/java/org/apache/hc/core5/http/nio/entity/StringAsyncEntityProducer.java
##########
@@ -54,6 +55,7 @@ public StringAsyncEntityProducer(
         super(bufferSize, fragmentSizeHint, contentType);
         Args.notNull(content, "Content");
         this.content = CharBuffer.wrap(content);
+        this.length = 
content.toString().getBytes(contentType.getCharset()).length;

Review comment:
       I thought the implementation was missing, but it seems to be designed to 
produce HTTP requests without content-length header. Close this PR.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to