This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new f2f8c90c57 Improve naming. No functional change. f2f8c90c57 is described below commit f2f8c90c57849fd6c6cf9f0223f035769f0bbeeb 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 18db62ee04..31ed2c15e0 100644 --- a/java/org/apache/catalina/valves/AbstractAccessLogValve.java +++ b/java/org/apache/catalina/valves/AbstractAccessLogValve.java @@ -1536,10 +1536,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 @@ -1549,7 +1549,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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org