hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Rosczak (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1214) DecompressingHttpClient getHttpHost method uses wrong URI component
Date Thu, 05 Jul 2012 09:13:34 GMT
Jan Rosczak created HTTPCLIENT-1214:

             Summary: DecompressingHttpClient getHttpHost method uses wrong URI component
                 Key: HTTPCLIENT-1214
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1214
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.2 Final
            Reporter: Jan Rosczak

In the getHttpHost method a HttpHost is constructed from the request URI:

        URI uri = request.getURI();
        return new HttpHost(uri.getAuthority());

The authority of an URI is defined as[user-info@]host[:port] but the constructor of HttpHost
only expects a hostname. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


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

View raw message