Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimone Bordet2013-05-03 16:56:22 +0000
committerSimone Bordet2013-05-03 16:56:22 +0000
commitebc17e98c3c31df863f09ab9e9e142b84ddc330c (patch)
tree4dd96bd0e0e352e66c3d9d2493423430ef41a392 /jetty-deploy/src/test
parentc1d655775f31229b8dfeecbc17f8c6b183578187 (diff)
downloadorg.eclipse.jetty.project-ebc17e98c3c31df863f09ab9e9e142b84ddc330c.tar.gz
org.eclipse.jetty.project-ebc17e98c3c31df863f09ab9e9e142b84ddc330c.tar.xz
org.eclipse.jetty.project-ebc17e98c3c31df863f09ab9e9e142b84ddc330c.zip
406861 - IPv6 redirects fail.
Diffstat (limited to 'jetty-deploy/src/test')
-rw-r--r--jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java
index 9e946768d1..fdc8092b4c 100644
--- a/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java
+++ b/jetty-deploy/src/test/java/org/eclipse/jetty/deploy/test/XmlConfiguredJetty.java
@@ -44,6 +44,7 @@ import org.eclipse.jetty.toolchain.test.MavenTestingUtils;
import org.eclipse.jetty.toolchain.test.PathAssert;
import org.eclipse.jetty.toolchain.test.TestingDir;
import org.eclipse.jetty.util.IO;
+import org.eclipse.jetty.util.URIUtil;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.webapp.WebAppContext;
import org.eclipse.jetty.xml.XmlConfiguration;
@@ -290,9 +291,7 @@ public class XmlConfiguredJetty
public URI getServerURI() throws UnknownHostException
{
StringBuilder uri = new StringBuilder();
- uri.append(getScheme()).append("://");
- uri.append(InetAddress.getLocalHost().getHostAddress());
- uri.append(":").append(getServerPort());
+ URIUtil.appendSchemeHostPort(uri, getScheme(), InetAddress.getLocalHost().getHostAddress(), getServerPort());
return URI.create(uri.toString());
}

Back to the top