This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4d38ebf48c Use more appropriate utility class
4d38ebf48c is described below
commit 4d38ebf48c1d3a40520919d82be54a2f8de77f6c
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 7220ffabf0..175ae8e330 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;
/**
@@ -218,7 +218,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]