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 2018/03/01 12:41:00 UTC

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

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16381927#comment-16381927 ] 

Oleg Kalnichevski commented on HTTPCLIENT-1907:
-----------------------------------------------

bq. It absolutely makes sense to pass an URI here

Why so? What do URIs have to do with endpoint details?

Oleg

> 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
>            Priority: Minor
>
> 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