jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From juanpa...@apache.org
Subject svn commit: r1546459 - /jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java
Date Thu, 28 Nov 2013 21:21:04 GMT
Author: juanpablo
Date: Thu Nov 28 21:21:03 2013
New Revision: 1546459

URL: http://svn.apache.org/r1546459
Log:
JSPWIKI-804: capitalized X-Forwarded-For

Modified:
    jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java

Modified: jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java?rev=1546459&r1=1546458&r2=1546459&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java (original)
+++ jspwiki/trunk/jspwiki-war/src/main/java/org/apache/wiki/util/HttpUtil.java Thu Nov 28
21:21:03 2013
@@ -52,7 +52,7 @@ public final class HttpUtil {
      * @return remote address associated to the request.
      */
     public static String getRemoteAddress( HttpServletRequest req ) {
-		return StringUtils.isNotEmpty ( req.getHeader( "x-forwarded-for" ) ) ? req.getHeader( "x-forwarded-for"
) : 
+		return StringUtils.isNotEmpty ( req.getHeader( "X-Forwarded-For" ) ) ? req.getHeader( "X-Forwarded-For"
) : 
 			                                                                   req.getRemoteAddr();
 	}
 



Mime
View raw message