You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mi...@apache.org on 2020/04/17 19:10:55 UTC

[tomcat] branch 9.0.x updated: Remove redundant response message

This is an automated email from the ASF dual-hosted git repository.

michaelo 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 cbe883a  Remove redundant response message
cbe883a is described below

commit cbe883a831ef05b929c236d469cbf4e38591cebb
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Apr 17 20:58:09 2020 +0200

    Remove redundant response message
---
 java/org/apache/catalina/connector/CoyoteAdapter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/connector/CoyoteAdapter.java b/java/org/apache/catalina/connector/CoyoteAdapter.java
index 0f5a289..0d89b07 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -702,7 +702,7 @@ public class CoyoteAdapter implements Adapter {
             if (request.getContext() == null) {
                 // Don't overwrite an existing error
                 if (!response.isError()) {
-                    response.sendError(404, "Not found");
+                    response.sendError(404);
                 }
                 // Allow processing to continue.
                 // If present, the error reporting valve will provide a response


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org