This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 13b12ee Remove unnecessary trim()
13b12ee is described below
commit 13b12ee040f1c0e65913de78a0ca741c044c5ea6
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 1cf343a..06794ac 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -2179,7 +2179,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]