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

   **[Siqi 
Li](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slisaasquatch)**
 opened 
**[HTTPCORE-679](https://issues.apache.org/jira/browse/HTTPCORE-679?redirect=false)**
 and commented
   
   Take this simple code example:
   
   ```java
   System.out.println(new 
URIBuilder().setScheme("https").setHost("example.com").setPathSegments("foo:bar").toString());
   ```
   
   In 5.0 and in 4.x, this code would produce 
   
   ```java
   https://example.com/foo:bar
   ```
   
   Since 5.1, the behavior has changed. It now produces
   
   ```java
   https://example.com/foo%3Abar
   ```
   
   This actually broke one of my calls to iap.googleapis.com. I know it can be 
argued that it's the server's fault for not decoding %3A, but ':' does not 
actually need to be encoded in URL path segments. Also, this is an unnecessary 
breaking change in URIBuilder's behavior.
   
   
   ---
   
   **Affects:** 5.1
   


-- 
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