You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2017/11/02 19:50:47 UTC
[camel] branch camel-2.20.x updated: CAMEL-11986: HTTP4 Producer
for TLS schemes tra...
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch camel-2.20.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.20.x by this push:
new d961e9d CAMEL-11986: HTTP4 Producer for TLS schemes tra...
d961e9d is described below
commit d961e9d7bb2fa5c2fc09f0f633c3a2d855102970
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Thu Nov 2 20:19:16 2017 +0100
CAMEL-11986: HTTP4 Producer for TLS schemes tra...
...nsforms endpoint URI to `http4s`
This simply replaces the first occurance of `:` with `4:` transforming
the plain text URL like `http://camel.apache.org/` to
`http4://camel.apache.org/` and TLS URL `https://camel.apache.org/` to
`https4://camel.apache.org/`.
---
.../src/main/java/org/apache/camel/component/http4/HttpComponent.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java b/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
index 6a99af3..0273929 100644
--- a/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
+++ b/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpComponent.java
@@ -392,7 +392,7 @@ public class HttpComponent extends HttpCommonComponent implements RestProducerFa
uriTemplate = FileUtil.stripLeadingSeparator(uriTemplate);
// replace http with http4 in the host part
- host = host.replace("http", "http4");
+ host = host.replaceFirst(":", "4:");
// get the endpoint
String url = host;
--
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].