You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2022/10/09 18:35:02 UTC

[GitHub] [commons-email] KyraZQL commented on a diff in pull request #100: 3 mutators by kyra

KyraZQL commented on code in PR #100:
URL: https://github.com/apache/commons-email/pull/100#discussion_r990823274


##########
src/main/java/org/apache/commons/mail/util/MimeMessageParser.java:
##########
@@ -425,7 +423,7 @@ private byte[] getContent(final InputStream is)
         final BufferedInputStream isReader = new BufferedInputStream(is);
         try (BufferedOutputStream osWriter = new BufferedOutputStream(os)) {
             int ch;
-            while ((ch = isReader.read()) != -1)
+            while ((ch = isReader.read()) != 1)

Review Comment:
   Sorry, this PR was meant to merge to the forked repo master branch, instead of this repo. Closed it and sorry again.



-- 
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: issues-unsubscribe@commons.apache.org

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