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 2022/08/23 07:36:56 UTC
[tomcat] branch 9.0.x updated: Improve naming. No functional change.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 411d689c5e Improve naming. No functional change.
411d689c5e is described below
commit 411d689c5eedb55ff2e4b5760cc11b3ed03e6af4
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Aug 23 08:36:34 2022 +0100
Improve naming. No functional change.
---
java/org/apache/catalina/valves/AbstractAccessLogValve.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/java/org/apache/catalina/valves/AbstractAccessLogValve.java b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
index 8cf278c9b2..5afea9f2c3 100644
--- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
+++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
@@ -1540,10 +1540,10 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access
* write a specific cookie - %{xxx}c
*/
protected static class CookieElement implements AccessLogElement {
- private final String header;
+ private final String cookieNameToLog;
- public CookieElement(String header) {
- this.header = header;
+ public CookieElement(String cookieNameToLog) {
+ this.cookieNameToLog = cookieNameToLog;
}
@Override
@@ -1553,7 +1553,7 @@ public abstract class AbstractAccessLogValve extends ValveBase implements Access
Cookie[] cookies = request.getCookies();
if (cookies != null) {
for (Cookie cookie : cookies) {
- if (header.equals(cookie.getName())) {
+ if (cookieNameToLog.equals(cookie.getName())) {
value = cookie.getValue();
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org