This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 7ed1e2b Remove redundant response message
7ed1e2b is described below
commit 7ed1e2ba74927ddba6857a0607aa3d5d4d7703f4
Author: Michael Osipov <[email protected]>
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 ec9c4a0..e157eb7 100644
--- a/java/org/apache/catalina/connector/CoyoteAdapter.java
+++ b/java/org/apache/catalina/connector/CoyoteAdapter.java
@@ -699,7 +699,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: [email protected]
For additional commands, e-mail: [email protected]