You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Wyraz (JIRA)" <ji...@apache.org> on 2018/03/01 12:32:00 UTC

[jira] [Created] (HTTPCLIENT-1907) org.apache.http.HttpHost.create(String) should remove trailing path of URLs

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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org