jira-importer opened a new issue, #1232: URL: https://github.com/apache/httpcomponents-core/issues/1232
**[Jovan Attisha](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER286168)** opened **[HTTPCORE-709](https://issues.apache.org/jira/browse/HTTPCORE-709?redirect=false)** and commented [This commit](https://github.com/apache/httpcomponents-core/commit/1614d5d5a5de6f4faadff9ecb566982d56b65179) to BasicHttpRequest attempts to make BasicHttpRequest conform to RFC3986, but I actually don't think this is properly following spec. [The RFC](https://datatracker.ietf.org/doc/html/rfc3986#section-3.3) says that: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character. If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//"). However, the code blocks a double slash no matter what, even if there is an authority component. So calling: ```java new BasicHttpRequest("GET", new URI("https://google.com//")); ``` throws an IllegalArgumentException. --- **Affects:** 5.0.1, 5.1.1, 5.1.2, 5.1.3, 5.1, 5.2-alpha1, 5.2-alpha2 -- 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]
