risdenk commented on code in PR #3323:
URL: https://github.com/apache/solr/pull/3323#discussion_r2047756177
##########
solr/core/src/java/org/apache/solr/servlet/ServletUtils.java:
##########
@@ -252,8 +253,11 @@ private static void traceHttpRequestExecution2(
static void consumeInputFully(HttpServletRequest req, HttpServletResponse
response) {
try {
ServletInputStream is = req.getInputStream();
- //noinspection StatementWithEmptyBody
- while (!is.isFinished() && is.read() != -1) {}
+ if (!is.isFinished() && is.read() != -1) {
Review Comment:
We have `Utils.readFully(InputStream is)` would that usable here?
--
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]