jira-importer opened a new issue, #1494: URL: https://github.com/apache/httpcomponents-core/issues/1494
**[Claus Ibsen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=davsclaus)** opened **[HTTPCORE-770](https://issues.apache.org/jira/browse/HTTPCORE-770?redirect=false)** and commented When upgrading from Http Client v4 to v5 then the URIBuilder has changed a default value for the plusAsBlank option. In v4 the default is true org.apache.http.client.utils.URLEncodedUtils.decodeFormFields() ~~~ return urlDecode(content, charset != null ? charset : Consts.UTF_8, true); ~~~ In v5 the default is changed to false org.apache.hc.core5.net.URIBuilder.digestURI() ~~~ this.queryParams = parseQuery(uri.getRawQuery(), charset, false); ~~~ I wonder if the URIBuilder could have some kind of flag that can be set to set whether to use true or false. import org.apache.hc.core5.http.NameValuePair; import org.apache.hc.core5.http.message.BasicNameValuePair; import org.apache.hc.core5.net.URIBuilder; URIBuilder uriBuilder; uriBuilder = new URIBuilder("http://dummy/demo+demo?sample=sample+sample"); LOG.info("uri="+uriBuilder.toString()); List\<NameValuePair> queryParameters = uriBuilder.getQueryParams(); queryParameters.add(new BasicNameValuePair("Greeting", "hello")); uriBuilder.setParameters(queryParameters); LOG.info("uri="+uriBuilder.toString()); --- **Affects:** 5.3 1 votes, 5 watchers -- 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]
