This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new f3b152ce47 Use more appropriate utility class
f3b152ce47 is described below
commit f3b152ce47a1f0875e8e0ebe12c50d1188d73a55
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Sep 15 10:37:40 2023 +0100
Use more appropriate utility class
---
java/org/apache/catalina/valves/ProxyErrorReportValve.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/catalina/valves/ProxyErrorReportValve.java
b/java/org/apache/catalina/valves/ProxyErrorReportValve.java
index 949390bcf7..3371ee55e6 100644
--- a/java/org/apache/catalina/valves/ProxyErrorReportValve.java
+++ b/java/org/apache/catalina/valves/ProxyErrorReportValve.java
@@ -31,12 +31,12 @@ import java.util.concurrent.atomic.AtomicBoolean;
import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;
+import org.apache.catalina.util.IOTools;
import org.apache.coyote.ActionCode;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.apache.tomcat.util.ExceptionUtils;
import org.apache.tomcat.util.descriptor.web.ErrorPage;
-import org.apache.tomcat.util.http.fileupload.IOUtils;
import org.apache.tomcat.util.res.StringManager;
/**
@@ -209,7 +209,7 @@ public class ProxyErrorReportValve extends ErrorReportValve
{
response.setContentLength(httpURLConnection.getContentLength());
OutputStream outputStream = response.getOutputStream();
InputStream inputStream = url.openStream();
- IOUtils.copy(inputStream, outputStream);
+ IOTools.flow(inputStream, outputStream);
} catch (URISyntaxException | IOException |
IllegalArgumentException e) {
if (log.isDebugEnabled()) {
log.debug("Proxy error to " + urlString, e);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]