You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2017/10/25 15:08:00 UTC
[jira] [Resolved] (HTTPCLIENT-1876) Improve the buildString()
method in URIBuilder
[ https://issues.apache.org/jira/browse/HTTPCLIENT-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCLIENT-1876.
-------------------------------------------
Resolution: Fixed
Fix Version/s: 4.6 Alpha1
4.5.4
Patch committed to HttpClient 4.5.x and 4.6.x branches and HttpCore 5.x.
Oleg
> Improve the buildString() method in URIBuilder
> ----------------------------------------------
>
> Key: HTTPCLIENT-1876
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1876
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Components: HttpClient (classic)
> Affects Versions: 4.4.1
> Reporter: Aleh Struneuski
> Priority: Minor
> Fix For: 4.5.4, 4.6 Alpha1
>
>
> After building URI using URIBuilder with the setParameters method which has an empty list as argument, the created URI ends with symbol ?.
> String testUrl = "https://test.com/test_path?key=value";
> URI uri = new URIBuilder(testUrl).clearParameters().setParameters(Arrays.asList()).build();
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org