This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 7.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/7.0.x by this push: new 00e80e6 Remove unnecessary code. 00e80e6 is described below commit 00e80e69f1df19af73fa8211d7130dcbc9f98c0c Author: Mark Thomas <ma...@apache.org> 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 a5de0f9..0b5dd4a 100644 --- a/java/org/apache/catalina/connector/CoyoteAdapter.java +++ b/java/org/apache/catalina/connector/CoyoteAdapter.java @@ -304,7 +304,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); if (t != null) { asyncConImpl.setErrorState(t, true); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org