xyuanlu commented on code in PR #2960:
URL: https://github.com/apache/helix/pull/2960#discussion_r1831771633


##########
helix-rest/src/main/java/org/apache/helix/rest/client/CustomRestClientImpl.java:
##########
@@ -202,6 +202,7 @@ protected HttpResponse post(String url, Map<String, Object> 
payloads) throws IOE
             LOG.warn("Received 302 but no Location header is present, stopping 
retries.");
             break;  // Break out if there is no valid redirect location
           }
+          EntityUtils.consume(response.getEntity());

Review Comment:
   
[consumeQuietly](https://javadoc.io/static/org.apache.httpcomponents/httpcore/4.4.9/org/apache/http/util/EntityUtils.html#consumeQuietly(org.apache.http.HttpEntity))?



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to