This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 008c627 CAMEL-16441: camel-core - Optimize EndpointKey can be
NormalizedUri
008c627 is described below
commit 008c62701e4700ae279463d7b7e17675054caeb2
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Apr 1 18:54:21 2021 +0200
CAMEL-16441: camel-core - Optimize EndpointKey can be NormalizedUri
---
.../org/apache/camel/builder/endpoint/AbstractEndpointBuilder.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/AbstractEndpointBuilder.java
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/AbstractEndpointBuilder.java
index f540929..8917e92 100644
---
a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/AbstractEndpointBuilder.java
+++
b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/AbstractEndpointBuilder.java
@@ -126,15 +126,15 @@ public class AbstractEndpointBuilder {
}
if (params.isEmpty()) {
- answer = NormalizedUri.newNormalizedUri(targetScheme + "://" +
targetPath, false);
+ answer = NormalizedUri.newNormalizedUri(targetScheme + "://" +
targetPath, true);
} else {
try {
// build query string from parameters
String query = URISupport.createQueryString(params, encode);
if (targetPath.contains("?")) {
- answer = NormalizedUri.newNormalizedUri(targetScheme +
"://" + targetPath + "&" + query, false);
+ answer = NormalizedUri.newNormalizedUri(targetScheme +
"://" + targetPath + "&" + query, true);
} else {
- answer = NormalizedUri.newNormalizedUri(targetScheme +
"://" + targetPath + "?" + query, false);
+ answer = NormalizedUri.newNormalizedUri(targetScheme +
"://" + targetPath + "?" + query, true);
}
} catch (URISyntaxException e) {
throw RuntimeCamelException.wrapRuntimeCamelException(e);