This piece of code is not passed by Checkmarx. It complains that the getInputStream() is not sanitized and/or validated. Any idea how to fix it?
protected HttpRequest buildProxyRequestWithEntity(String method, String proxyRequestUrl,
HttpServletRequest servletRequest) throws IOException {
HttpEntityEnclosingRequest proxyRequest = new BasicHttpEntityEnclosingRequest(method, proxyRequestUrl);
proxyRequest
.setEntity(new InputStreamEntity(servletRequest.getInputStream(), getContentLength(servletRequest)));
return proxyRequest;
}