Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1876

Improve the buildString() method in URIBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.1
    • 4.5.4
    • HttpClient (classic)
    • None

    Description

      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();

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Oleg S. Aleh Struneuski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: