hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1810) URIBuilder.toString() always adds '/' to path, even with query parameters
Date Tue, 07 Feb 2017 20:07:42 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15856693#comment-15856693
] 

ASF GitHub Bot commented on HTTPCLIENT-1810:
--------------------------------------------

Github user ok2c commented on a diff in the pull request:

    https://github.com/apache/httpclient/pull/64#discussion_r99915066
  
    --- Diff: httpclient/src/main/java/org/apache/http/client/utils/URIBuilder.java ---
    @@ -26,18 +26,18 @@
      */
     package org.apache.http.client.utils;
     
    +import org.apache.http.Consts;
    +import org.apache.http.NameValuePair;
    +import org.apache.http.conn.util.InetAddressUtils;
    +import org.apache.http.message.BasicNameValuePair;
    +
     import java.net.URI;
     import java.net.URISyntaxException;
     import java.nio.charset.Charset;
     import java.util.ArrayList;
     import java.util.Iterator;
     import java.util.List;
     
    -import org.apache.http.Consts;
    -import org.apache.http.NameValuePair;
    -import org.apache.http.conn.util.InetAddressUtils;
    -import org.apache.http.message.BasicNameValuePair;
    -
    --- End diff --
    
    It would be nice if the patch did not move imports around


> URIBuilder.toString() always adds '/' to path, even with query parameters
> -------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1810
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1810
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.5.3
>            Reporter: Osvaldo Pinali Doederlein
>
> I get results like this:
> http://a.io:999/?p1=v1&p2=v2
> previously, it was correct
> http://a.io:999?p1=v1&p2=v2



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message