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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to