You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:36:41 UTC

[sling-org-apache-sling-hapi-client] 05/24: SLING-5136 - use numeric localhost address, the string might not work in some environments

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.hapi.client-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hapi-client.git

commit 7bb773c563c65f08d06634ec2b7d8bd55db74ed1
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue Oct 13 12:00:41 2015 +0000

    SLING-5136 - use numeric localhost address, the string might not work in some environments
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/hapi/client@1708360 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/hapi/client/test/util/HttpServerRule.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/sling/hapi/client/test/util/HttpServerRule.java b/src/test/java/org/apache/sling/hapi/client/test/util/HttpServerRule.java
index 4e1b069..da42c16 100644
--- a/src/test/java/org/apache/sling/hapi/client/test/util/HttpServerRule.java
+++ b/src/test/java/org/apache/sling/hapi/client/test/util/HttpServerRule.java
@@ -71,7 +71,7 @@ public class HttpServerRule extends ExternalResource {
         registerHandlers();
         server = serverBootstrap.create();
         server.start();
-        host = new HttpHost("localhost", server.getLocalPort(), protocolScheme.name());
+        host = new HttpHost("127.0.0.1", server.getLocalPort(), protocolScheme.name());
         uri = URIUtils.rewriteURI(new URI("/"), host);
     }
     

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.