jira-importer opened a new issue, #859:
URL: https://github.com/apache/httpcomponents-core/issues/859

   **[Karl 
Wright](https://issues.apache.org/jira/secure/[email protected])**
 opened 
**[HTTPCORE-326](https://issues.apache.org/jira/browse/HTTPCORE-326?redirect=false)**
 and commented
   
   The following method:
   
   ```
   public String toHostString() {
       if (this.port != -1) {
           //the highest port number is 65535, which is length 6 with the 
addition of the colon
           StringBuilder buffer = new StringBuilder(this.hostname.length() + 6);
           buffer.append(this.hostname);
           buffer.append(":");
           buffer.append(Integer.toString(this.port));
           return buffer.toString();
       } else {
           return this.hostname;
       }
   }
   ```
   
   ... always appends a port number.  Unfortunately, some sites don't accept a 
port number.  See CONNECTORS-604.
   
   
   
   ---
   
   **Affects:** 4.2.2, 4.2.3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to