This is an automated email from the ASF dual-hosted git repository.
markt 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 88ac7c24f0 Simplify (aligns with similar usages)
88ac7c24f0 is described below
commit 88ac7c24f006813f8b70cd0662e58238a03286d9
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Nov 6 16:07:49 2023 +0000
Simplify (aligns with similar usages)
---
java/org/apache/coyote/http11/Http11Processor.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/java/org/apache/coyote/http11/Http11Processor.java
b/java/org/apache/coyote/http11/Http11Processor.java
index b8a06c9e19..4c8fee89e8 100644
--- a/java/org/apache/coyote/http11/Http11Processor.java
+++ b/java/org/apache/coyote/http11/Http11Processor.java
@@ -1128,8 +1128,7 @@ public class Http11Processor extends AbstractProcessor {
}
}
- MessageBytes methodMB = request.method();
- if (methodMB.equals("HEAD")) {
+ if (request.method().equals("HEAD")) {
// No entity body
outputBuffer.addActiveFilter(outputFilters[Constants.VOID_FILTER]);
contentDelimitation = true;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]