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 d40b06c Remove unnecessary code.
d40b06c is described below
commit d40b06c70b01ae78a3313e8d7d563d536e40a7e2
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 2 10:53:26 2021 +0000
Remove unnecessary code.
If t == null this code has no effect
If t != null it is re-added in asyncConImpl.setErrorState
---
java/org/apache/catalina/connector/CoyoteAdapter.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java
b/java/org/apache/catalina/connector/CoyoteAdapter.java
index 01216f2..b03b688 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -152,7 +152,6 @@ public class CoyoteAdapter implements Adapter {
// trigger a close
success = false;
Throwable t =
(Throwable)req.getAttribute(RequestDispatcher.ERROR_EXCEPTION);
- req.getAttributes().remove(RequestDispatcher.ERROR_EXCEPTION);
Context context = request.getContext();
ClassLoader oldCL = null;
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]