You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/03/30 20:46:13 UTC
[tomcat] branch 8.5.x updated: Remove unnecessary trim()
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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org