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 beda7290b0 Improve naming. No functional change.
beda7290b0 is described below
commit beda7290b07c5b9308f087979d1c5e67480cafef
Author: Mark Thomas <[email protected]>
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 18ede7d329..e92d3a014d 100644
--- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java
+++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java
@@ -1551,10 +1551,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
@@ -1564,7 +1564,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: [email protected]
For additional commands, e-mail: [email protected]