You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/05/20 02:34:40 UTC

httpcomponents-client git commit: [HTTPCLIENT-1852] Add APIs URIBuilder.localhost() and setHost(InetAddress). The test now actually uses the new API.

Repository: httpcomponents-client
Updated Branches:
  refs/heads/4.6.x 1da8673a6 -> f030988e8


[HTTPCLIENT-1852] Add APIs URIBuilder.localhost() and
setHost(InetAddress). The test now actually uses the new API.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/commit/f030988e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/tree/f030988e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-client/diff/f030988e

Branch: refs/heads/4.6.x
Commit: f030988e89f1b79ee411473c4ec29741f6a63730
Parents: 1da8673
Author: Gary Gregory <gg...@apache.org>
Authored: Fri May 19 19:34:38 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Fri May 19 19:34:38 2017 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/http/client/utils/TestURIBuilder.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-client/blob/f030988e/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
----------------------------------------------------------------------
diff --git a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
index de4cf3c..5095d39 100644
--- a/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
+++ b/httpclient/src/test/java/org/apache/http/client/utils/TestURIBuilder.java
@@ -219,9 +219,8 @@ public class TestURIBuilder {
         final String specials="/abcd!$&*()_-+.,=:;'~@[]?<>|#^%\"{}\\\u00a3`\u00ac\u00a6xyz"; // N.B. excludes space
         final URI uri = new URI(scheme, specials, host.getHostAddress(), 80, specials, specials, specials);
 
-        final URI bld = new URIBuilder()
+        final URI bld = URIBuilder.localhost()
                 .setScheme(scheme)
-                .setHost(host)
                 .setUserInfo(specials)
                 .setPath(specials)
                 .setCustomQuery(specials)