Michael Wyraz created HTTPCLIENT-1907:
-----------------------------------------

             Summary: org.apache.http.HttpHost.create(String) should remove 
trailing path of URLs
                 Key: HTTPCLIENT-1907
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1907
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient (classic)
    Affects Versions: 4.5.5
            Reporter: Michael Wyraz


The method org.apache.http.HttpHost.create(String) parses a "String" to a 
HttpHost. What the "String" is, is not documented. It absolutely makes sense to 
pass an URI here - which works as long as it is in format protocol://host:port 
but it fails for urls with protocol://host/path.

The path should be removed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to