hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleh Struneuski (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1876) Improve the buildString() method in URIBuilder
Date Mon, 23 Oct 2017 14:31:00 GMT
Aleh Struneuski created HTTPCLIENT-1876:

             Summary: 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

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

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

View raw message