jira-importer opened a new issue, #1032: URL: https://github.com/apache/httpcomponents-core/issues/1032
**[Francois-Xavier Bonnet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=fx.bonnet)** opened **[HTTPCORE-445](https://issues.apache.org/jira/browse/HTTPCORE-445?redirect=false)** and commented If I register a handler with pattern "/test*" it successfully matches "/test" or "/test/abcd" but surprisingly it does not match "/test?x=y" Looking at the code:``` 78 final int i = path.indexOf("?"); 79 if (i != -1) { 80 path = path.substring(0, i - 1); 81 } ``` Doing this removes the last character before the query string, "/test?x=y" becomes "/tes" which does not match. I attached a sample class to reproduce the issue. ``` --- **Affects:** 5.0-alpha2, 5.0-alpha3 **Attachments:** - [Main.java](https://issues.apache.org/jira/secure/attachment/12852004/Main.java) (_923 bytes_) -- 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]
