madrob commented on code in PR #3323: URL: https://github.com/apache/solr/pull/3323#discussion_r2047893407
########## solr/solrj/src/java/org/apache/solr/common/util/Utils.java: ########## @@ -664,8 +665,13 @@ public static void consumeFully(HttpEntity entity) { * @throws IOException on problem with IO */ public static void readFully(InputStream is) throws IOException { - is.skip(is.available()); - while (is.read() != -1) {} + if (is.read() != -1) { // not needed but avoids a buffer allocation soon if found data Review Comment: I think this comment missing a word? -- 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-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org