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 03:19:41 GMT

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

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

GitHub user Coderec opened a pull request:

    https://github.com/apache/httpclient/pull/64

    [HTTPCLIENT-1810] URIBuilder.toString() always adds '/' to path, even with query parameters

    When path is null or '', URIBuilder. normalizePath() should return '' rather than '/'.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Coderec/httpclient cuibaosen/HTTPCLIENT-1810

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/httpclient/pull/64.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #64
    
----
commit 33a4f0fcdfeb0404d2fe7ed5719e99262850168a
Author: CuiBaosen <baosencumt@126.com>
Date:   2017-02-07T03:10:04Z

    When path is null or '', URIBuilder.toString() return '' rather than '/'.

----


> 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