You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by GitBox <gi...@apache.org> on 2022/03/15 22:18:48 UTC
[GitHub] [httpcomponents-client] slackhappy commented on a change in pull request #354: StringBody: just write the bytes to the output stream
slackhappy commented on a change in pull request #354:
URL: https://github.com/apache/httpcomponents-client/pull/354#discussion_r827460938
##########
File path: httpclient5/src/main/java/org/apache/hc/client5/http/entity/mime/StringBody.java
##########
@@ -70,13 +70,7 @@ public Reader getReader() {
@Override
public void writeTo(final OutputStream out) throws IOException {
Args.notNull(out, "Output stream");
- final InputStream in = new ByteArrayInputStream(this.content);
Review comment:
oh good catch! will fix
--
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.
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org