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:19:29 UTC
[camel] branch master 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 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 1bb9bb2 CAMEL-11986: HTTP4 Producer for TLS schemes tra...
1bb9bb2 is described below
commit 1bb9bb25872a70b10b76b7c25c6d4fe1e589e389
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>'].