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 2019/07/31 10:44:00 UTC

[tomcat] branch master updated: Fix copy/paste error

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 645034e  Fix copy/paste error
645034e is described below

commit 645034e2a24e33897fb48ae667895cadbf124092
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jul 31 11:43:15 2019 +0100

    Fix copy/paste error
---
 java/org/apache/catalina/valves/RemoteIpValve.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/valves/RemoteIpValve.java b/java/org/apache/catalina/valves/RemoteIpValve.java
index 89aa4b4..ae5bacc 100644
--- a/java/org/apache/catalina/valves/RemoteIpValve.java
+++ b/java/org/apache/catalina/valves/RemoteIpValve.java
@@ -739,7 +739,7 @@ public class RemoteIpValve extends ValveBase {
             request.setAttribute(AccessLog.PROTOCOL_ATTRIBUTE,
                     request.getProtocol());
             request.setAttribute(AccessLog.SERVER_NAME_ATTRIBUTE,
-                    Integer.valueOf(request.getServerName()));
+                    request.getServerName());
             request.setAttribute(AccessLog.SERVER_PORT_ATTRIBUTE,
                     Integer.valueOf(request.getServerPort()));
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org