This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 4b16b42 Remove unnecessary code.
4b16b42 is described below
commit 4b16b429d6beac1f1c180d12d20dbb10471debd2
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 df01fd9..8af8cd6 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -148,7 +148,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]