Author: pferraro
Date: 2009-05-18 13:30:51 -0400 (Mon, 18 May 2009)
New Revision: 2430
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/LoadServlet.java
Log:
Use "localhost" for local urls, instead of request.getLocalName()
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/LoadServlet.java
===================================================================
---
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/LoadServlet.java 2009-05-18
15:49:00 UTC (rev 2429)
+++
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/LoadServlet.java 2009-05-18
17:30:51 UTC (rev 2430)
@@ -80,7 +80,7 @@
protected String createLocalURL(HttpServletRequest request, Map<String, String>
parameterMap)
{
Integer port = (Integer) this.getServletContext().getAttribute(PORT);
- return this.createURL(request, request.getLocalName(), (port != null) ?
port.intValue() : request.getLocalPort(), parameterMap);
+ return this.createURL(request, "localhost", (port != null) ?
port.intValue() : request.getLocalPort(), parameterMap);
}
private String createURL(HttpServletRequest request, String host, int port,
Map<String, String> parameterMap)
Show replies by date