sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-hapi] 05/24: SLING-5136 - use numeric localhost address, the string might not work in some environments
Date Tue, 07 Nov 2017 09:36:50 GMT
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.git

commit 7bb773c563c65f08d06634ec2b7d8bd55db74ed1
Author: Bertrand Delacretaz <bdelacretaz@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" <commits@sling.apache.org>.

Mime
View raw message