You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/02/13 15:11:51 UTC
[camel] branch master updated: SlackProducer should be able to use
a HTTP proxy to reach Slack in a secured environnement
This is an automated email from the ASF dual-hosted git repository.
acosentino 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 0b31519 SlackProducer should be able to use a HTTP proxy to reach Slack in a secured environnement
0b31519 is described below
commit 0b31519efba0053a634284564a09a443a901e43f
Author: NKame <ka...@cinemasie.com>
AuthorDate: Tue Feb 13 15:08:50 2018 +0000
SlackProducer should be able to use a HTTP proxy to reach Slack in a secured environnement
http://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/HttpClientBuilder.html
---
.../src/main/java/org/apache/camel/component/slack/SlackProducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
index 5d697ca..ad2a720 100644
--- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
+++ b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackProducer.java
@@ -46,7 +46,7 @@ public class SlackProducer extends DefaultProducer {
public void process(Exchange exchange) throws Exception {
// Create an HttpClient and Post object
- HttpClient client = HttpClientBuilder.create().build();
+ HttpClient client = HttpClientBuilder.create().useSystemProperties().build();
HttpPost httpPost = new HttpPost(slackEndpoint.getWebhookUrl());
// Build Helper object
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.