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 9a567f2 Remove unnecessary trim()
9a567f2 is described below
commit 9a567f200bd4724ed84a1353d9499d09ff029040
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Mar 30 21:44:56 2020 +0100
Remove unnecessary trim()
---
java/org/apache/catalina/servlets/DefaultServlet.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java
b/java/org/apache/catalina/servlets/DefaultServlet.java
index e2857f1..b1c019f 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -2325,7 +2325,7 @@ public class DefaultServlet extends HttpServlet {
if (currentToken.startsWith("W/")) {
currentToken = currentToken.substring(2);
}
- if (currentToken.trim().equals(eTag))
+ if (currentToken.equals(eTag))
conditionSatisfied = true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]